diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2003-11-09 23:00:05 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2003-11-09 23:00:05 +0000 |
commit | 48c2900d125462eee8cd026648885dbb12e81f17 (patch) | |
tree | 88417a28f17840c4e56f712e13be03306a9eb3f2 | |
parent | e92477b490a56b3b64bdd7faef0b75448feb5dfb (diff) |
cosmetic change; don't put an ending semicolon on the same line as
a for() loop.
-rw-r--r-- | usr.bin/man/config.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/usr.bin/man/config.c b/usr.bin/man/config.c index a9d018e0339..6ee8727b7bf 100644 --- a/usr.bin/man/config.c +++ b/usr.bin/man/config.c @@ -1,4 +1,4 @@ -/* $OpenBSD: config.c,v 1.4 2003/06/03 02:56:12 millert Exp $ */ +/* $OpenBSD: config.c,v 1.5 2003/11/09 23:00:04 millert Exp $ */ /* $NetBSD: config.c,v 1.7 1995/09/28 06:05:21 tls Exp $ */ /* @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)config.c 8.8 (Berkeley) 1/31/95"; #else -static char rcsid[] = "$OpenBSD: config.c,v 1.4 2003/06/03 02:56:12 millert Exp $"; +static char rcsid[] = "$OpenBSD: config.c,v 1.5 2003/11/09 23:00:04 millert Exp $"; #endif #endif /* not lint */ @@ -88,12 +88,14 @@ config(char *fname) p[len - 1] = '\0'; /* Terminate the line. */ /* Skip leading space. */ - for (; *p != '\0' && isspace(*p); ++p); + while (*p != '\0' && isspace(*p)) + p++; /* Skip empty/comment lines. */ if (*p == '\0' || *p == '#') continue; /* Find first token. */ - for (t = p; *t && !isspace(*t); ++t); + for (t = p; *t && !isspace(*t); ++t) + continue; if (*t == '\0') /* Need more than one token.*/ continue; *t = '\0'; |