Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/rump/librump/rumpkern brace policy. no functional change.



details:   https://anonhg.NetBSD.org/src/rev/a7e62ca48d5b
branches:  trunk
changeset: 747160:a7e62ca48d5b
user:      pooka <pooka%NetBSD.org@localhost>
date:      Fri Sep 04 16:42:19 2009 +0000

description:
brace policy.  no functional change.

diffstat:

 sys/rump/librump/rumpkern/ltsleep.c |  10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diffs (32 lines):

diff -r 8d8ed61c664c -r a7e62ca48d5b sys/rump/librump/rumpkern/ltsleep.c
--- a/sys/rump/librump/rumpkern/ltsleep.c       Fri Sep 04 16:41:39 2009 +0000
+++ b/sys/rump/librump/rumpkern/ltsleep.c       Fri Sep 04 16:42:19 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ltsleep.c,v 1.16 2009/09/04 16:41:39 pooka Exp $       */
+/*     $NetBSD: ltsleep.c,v 1.17 2009/09/04 16:42:19 pooka Exp $       */
 
 /*
  * Copyright (c) 2007 Antti Kantee.  All Rights Reserved.
@@ -29,7 +29,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ltsleep.c,v 1.16 2009/09/04 16:41:39 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ltsleep.c,v 1.17 2009/09/04 16:42:19 pooka Exp $");
 
 #include <sys/param.h>
 #include <sys/proc.h>
@@ -122,9 +122,11 @@
        struct ltsleeper *ltsp;
 
        mutex_enter(&sleepermtx);
-       LIST_FOREACH(ltsp, &sleepers, entries)
-               if (ltsp->id == ident)
+       LIST_FOREACH(ltsp, &sleepers, entries) {
+               if (ltsp->id == ident) {
                        cv_broadcast(&ltsp->cv);
+               }
+       }
        mutex_exit(&sleepermtx);
 }
 



Home | Main Index | Thread Index | Old Index