From af084386110d9864e55e893cc4fe3dad00b6e380 Mon Sep 17 00:00:00 2001 From: Tony Finch Date: Tue, 10 Sep 2002 20:53:46 +0000 Subject: [PATCH] Style: Don't treat pointers as booleans. --- usr.bin/uudecode/uudecode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.bin/uudecode/uudecode.c b/usr.bin/uudecode/uudecode.c index 9175c916e37..b9ac7b4b700 100644 --- a/usr.bin/uudecode/uudecode.c +++ b/usr.bin/uudecode/uudecode.c @@ -117,7 +117,7 @@ main(int argc, char *argv[]) if (*argv) { rval = 0; do { - if (!freopen(filename = *argv, "r", stdin)) { + if (freopen(filename = *argv, "r", stdin) == NULL) { warn("%s", *argv); rval = 1; continue; @@ -243,7 +243,7 @@ decode2(void) /* for each input line */ for (;;) { - if (!fgets(p = buf, sizeof(buf), stdin)) { + if (fgets(p = buf, sizeof(buf), stdin) == NULL) { warnx("%s: short file", filename); return (1); }