summaryrefslogtreecommitdiff
path: root/usr.bin/mail
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/mail
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/mail')
-rw-r--r--usr.bin/mail/edit.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/mail/edit.c b/usr.bin/mail/edit.c
index 7486569726c..a74e7be4d2c 100644
--- a/usr.bin/mail/edit.c
+++ b/usr.bin/mail/edit.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: edit.c,v 1.13 2004/05/10 15:25:51 deraadt Exp $ */
+/* $OpenBSD: edit.c,v 1.14 2006/10/10 21:38:16 cloder Exp $ */
/* $NetBSD: edit.c,v 1.5 1996/06/08 19:48:20 christos Exp $ */
/*
@@ -34,7 +34,7 @@
#if 0
static const char sccsid[] = "@(#)edit.c 8.1 (Berkeley) 6/6/93";
#else
-static const char rcsid[] = "$OpenBSD: edit.c,v 1.13 2004/05/10 15:25:51 deraadt Exp $";
+static const char rcsid[] = "$OpenBSD: edit.c,v 1.14 2006/10/10 21:38:16 cloder Exp $";
#endif
#endif /* not lint */
@@ -94,7 +94,7 @@ edit1(int *msgvec, int type)
char *p;
printf("Edit message %d [ynq]? ", msgvec[i]);
- if (fgets(buf, sizeof(buf), stdin) == 0)
+ if (fgets(buf, sizeof(buf), stdin) == NULL)
break;
for (p = buf; *p == ' ' || *p == '\t'; p++)
;