summaryrefslogtreecommitdiff
path: root/usr.bin/tic
diff options
context:
space:
mode:
authorChad Loder <cloder@cvs.openbsd.org>2006-10-10 21:38:17 +0000
committerChad Loder <cloder@cvs.openbsd.org>2006-10-10 21:38:17 +0000
commitca817738feb3dbccb047a79a8bba9d9ef8d35bef (patch)
tree1b3c3d53c613c58ec3dd701858f5ea0679e7260a /usr.bin/tic
parent5322f980d2221f7cb9600d5bd4b0e15ab30164bd (diff)
fgets(3) returns NULL on error, not 0. No functional change, but it makes
the code easier to read. OK deraadt
Diffstat (limited to 'usr.bin/tic')
-rw-r--r--usr.bin/tic/tic.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tic/tic.c b/usr.bin/tic/tic.c
index 588a98ac28c..320f55e9ebe 100644
--- a/usr.bin/tic/tic.c
+++ b/usr.bin/tic/tic.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tic.c,v 1.28 2003/10/21 23:57:04 deraadt Exp $ */
+/* $OpenBSD: tic.c,v 1.29 2006/10/10 21:38:16 cloder Exp $ */
/****************************************************************************
* Copyright (c) 1998,1999,2000,2001 Free Software Foundation, Inc. *
@@ -347,7 +347,7 @@ make_namelist(char *src)
for (pass = 1; pass <= 2; pass++) {
nn = 0;
- while (fgets(buffer, sizeof(buffer), fp) != 0) {
+ while (fgets(buffer, sizeof(buffer), fp) != NULL) {
if ((s = stripped(buffer)) != 0) {
if (dst != 0)
dst[nn] = s;