diff options
author | Anil Madhavapeddy <avsm@cvs.openbsd.org> | 2004-06-21 15:27:20 +0000 |
---|---|---|
committer | Anil Madhavapeddy <avsm@cvs.openbsd.org> | 2004-06-21 15:27:20 +0000 |
commit | ecab7d48a75714f05e55637088e5074b29a3e974 (patch) | |
tree | 82f2c3eafbb8f7e2ad62ea42b3db3e55825aa0e5 /usr.bin/xstr | |
parent | af50bab383360bb677dec3fd31407782f63ee776 (diff) |
dont compare int with NULL, compare to 0 instead, otto@ ok
Diffstat (limited to 'usr.bin/xstr')
-rw-r--r-- | usr.bin/xstr/xstr.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/xstr/xstr.c b/usr.bin/xstr/xstr.c index 0fd59e11de2..6995f5e0a32 100644 --- a/usr.bin/xstr/xstr.c +++ b/usr.bin/xstr/xstr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: xstr.c,v 1.11 2003/06/03 02:56:24 millert Exp $ */ +/* $OpenBSD: xstr.c,v 1.12 2004/06/21 15:27:19 avsm Exp $ */ /* $NetBSD: xstr.c,v 1.5 1994/12/24 16:57:59 cgd Exp $ */ /* @@ -40,7 +40,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)xstr.c 8.1 (Berkeley) 6/9/93"; #endif -static char rcsid[] = "$OpenBSD: xstr.c,v 1.11 2003/06/03 02:56:24 millert Exp $"; +static char rcsid[] = "$OpenBSD: xstr.c,v 1.12 2004/06/21 15:27:19 avsm Exp $"; #endif /* not lint */ #include <sys/types.h> @@ -308,7 +308,7 @@ inithash(void) return; for (;;) { mesgpt = tellpt; - if (fgetNUL(buf, sizeof buf, mesgread) == NULL) + if (fgetNUL(buf, sizeof buf, mesgread) == 0) break; hashit(buf, 0); } |