diff options
author | Ray Lai <ray@cvs.openbsd.org> | 2006-03-18 03:55:10 +0000 |
---|---|---|
committer | Ray Lai <ray@cvs.openbsd.org> | 2006-03-18 03:55:10 +0000 |
commit | ef426407b28b180a9589225beb7b3be12606730e (patch) | |
tree | cbdcf9f6acd37cc1a102fbdf8d7dd305dc22cda6 /usr.bin/cap_mkdb/getinfo.c | |
parent | fc9194b1dc204173f974a11cadd48f1f58b36603 (diff) |
In all these cases pfp != NULL. I also sneaked in some KNF.
Okay jaredy, millert@, and otto@
Diffstat (limited to 'usr.bin/cap_mkdb/getinfo.c')
-rw-r--r-- | usr.bin/cap_mkdb/getinfo.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/cap_mkdb/getinfo.c b/usr.bin/cap_mkdb/getinfo.c index 059c92f94b4..f907106ac63 100644 --- a/usr.bin/cap_mkdb/getinfo.c +++ b/usr.bin/cap_mkdb/getinfo.c @@ -1,4 +1,4 @@ -/* $OpenBSD: getinfo.c,v 1.9 2006/03/10 05:20:35 ray Exp $ */ +/* $OpenBSD: getinfo.c,v 1.10 2006/03/18 03:55:09 ray Exp $ */ /*- * Copyright (c) 1992, 1993 @@ -30,7 +30,7 @@ */ #ifndef lint -static char rcsid[] = "$OpenBSD: getinfo.c,v 1.9 2006/03/10 05:20:35 ray Exp $"; +static char rcsid[] = "$OpenBSD: getinfo.c,v 1.10 2006/03/18 03:55:09 ray Exp $"; #endif /* not lint */ #include <sys/types.h> @@ -532,9 +532,9 @@ igetnext(char **bp, char **db_array) (void)igetclose(); return (-1); } - for(;;) { + for (;;) { line = fgetln(pfp, &len); - if (line == NULL && pfp) { + if (line == NULL) { if (ferror(pfp)) { (void)igetclose(); return (-1); @@ -589,7 +589,7 @@ igetnext(char **bp, char **db_array) break; } else { /* name field extends beyond the line */ line = fgetln(pfp, &len); - if (line == NULL && pfp) { + if (line == NULL) { if (ferror(pfp)) { (void)igetclose(); return (-1); |