Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/config config(1): KNF



details:   https://anonhg.NetBSD.org/src/rev/bc60c42e86bf
branches:  trunk
changeset: 333389:bc60c42e86bf
user:      uebayasi <uebayasi%NetBSD.org@localhost>
date:      Sat Nov 01 04:34:27 2014 +0000

description:
config(1): KNF

diffstat:

 usr.bin/config/sem.c |  16 ++++++++++------
 1 files changed, 10 insertions(+), 6 deletions(-)

diffs (58 lines):

diff -r cc0a02f0d4ba -r bc60c42e86bf usr.bin/config/sem.c
--- a/usr.bin/config/sem.c      Fri Oct 31 18:26:06 2014 +0000
+++ b/usr.bin/config/sem.c      Sat Nov 01 04:34:27 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sem.c,v 1.66 2014/10/31 07:38:36 uebayasi Exp $        */
+/*     $NetBSD: sem.c,v 1.67 2014/11/01 04:34:27 uebayasi Exp $        */
 
 /*
  * Copyright (c) 1992, 1993
@@ -45,7 +45,7 @@
 #endif
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: sem.c,v 1.66 2014/10/31 07:38:36 uebayasi Exp $");
+__RCSID("$NetBSD: sem.c,v 1.67 2014/11/01 04:34:27 uebayasi Exp $");
 
 #include <sys/param.h>
 #include <ctype.h>
@@ -1329,7 +1329,8 @@
         *      list.
         */
        if (i != f) {
-               for (j = f; j->i_alias != i; j = j->i_alias);
+               for (j = f; j->i_alias != i; j = j->i_alias)
+                       continue;
                j->i_alias = i->i_alias;
        } else {
                if (i->i_alias == NULL) {
@@ -1352,7 +1353,8 @@
                 */
                for (ppi = &d->d_ihead;
                    *ppi != NULL && *ppi != i && (*ppi)->i_bsame != i;
-                   ppi = &(*ppi)->i_bsame);
+                   ppi = &(*ppi)->i_bsame)
+                       continue;
                if (*ppi == NULL)
                        panic("deldev: dev (%s) doesn't list the devi"
                            " (%s at %s)", d->d_name, i->i_name, i->i_at);
@@ -1378,7 +1380,8 @@
        iba = i->i_atdeva;
        for (ppi = &iba->d_ihead;
            *ppi != NULL && *ppi != i && (*ppi)->i_asame != i;
-           ppi = &(*ppi)->i_asame);
+           ppi = &(*ppi)->i_asame)
+               continue;
        if (*ppi == NULL)
                panic("deldev: deva (%s) doesn't list the devi (%s)",
                    iba->d_name, i->i_name);
@@ -1442,7 +1445,8 @@
                        panic("remove_devi(%s) - can't add to deaddevitab",
                            i->i_name);
        } else {
-               for (j = f; j->i_alias != NULL; j = j->i_alias);
+               for (j = f; j->i_alias != NULL; j = j->i_alias)
+                       continue;
                j->i_alias = i;
        }
        /*



Home | Main Index | Thread Index | Old Index