summaryrefslogtreecommitdiff
path: root/makemap/makemap.c
diff options
context:
space:
mode:
authorGregory Neil Shapiro <gshapiro@FreeBSD.org>2013-04-21 16:35:04 +0000
committerGregory Neil Shapiro <gshapiro@FreeBSD.org>2013-04-21 16:35:04 +0000
commite388eedd7a4356992c2ecf5dcc8e77368cd9c391 (patch)
treef2c0828e66f7ea13a73e6e4e3fc4e79f64d395e8 /makemap/makemap.c
parentccc63572aba0ca6725bc7b7cc14413c33fba01f5 (diff)
Notes
Diffstat (limited to 'makemap/makemap.c')
-rw-r--r--makemap/makemap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/makemap/makemap.c b/makemap/makemap.c
index f06ed0760080..f494ba03e2ec 100644
--- a/makemap/makemap.c
+++ b/makemap/makemap.c
@@ -20,7 +20,7 @@ SM_IDSTR(copyright,
Copyright (c) 1992, 1993\n\
The Regents of the University of California. All rights reserved.\n")
-SM_IDSTR(id, "@(#)$Id: makemap.c,v 8.180 2010/11/23 02:35:08 gshapiro Exp $")
+SM_IDSTR(id, "@(#)$Id: makemap.c,v 8.181 2013/03/12 15:24:51 ca Exp $")
#include <sys/types.h>
@@ -242,7 +242,7 @@ main(argc, argv)
cfile, sm_errstring(errno));
exit(EX_NOINPUT);
}
- while (sm_io_fgets(cfp, SM_TIME_DEFAULT, buf, sizeof(buf)) != NULL)
+ while (sm_io_fgets(cfp, SM_TIME_DEFAULT, buf, sizeof(buf)) >= 0)
{
register char *b;
@@ -392,7 +392,7 @@ main(argc, argv)
{
lineno = 0;
while (sm_io_fgets(smioin, SM_TIME_DEFAULT, ibuf, sizeof ibuf)
- != NULL)
+ >= 0)
{
register char *p;