From d8ac4091605cafeed429956439b3365036470356 Mon Sep 17 00:00:00 2001 From: phk Date: Thu, 18 Sep 1997 14:08:40 +0000 Subject: Many places in the code NULL is used in integer context, where plain 0 should be used. This happens to work because we #define NULL to 0, but is stylistically wrong and can cause problems for people trying to port bits of code to other environments. PR: 2752 Submitted by: Arne Henrik Juul --- usr.bin/uudecode/uudecode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.bin/uudecode/uudecode.c') diff --git a/usr.bin/uudecode/uudecode.c b/usr.bin/uudecode/uudecode.c index f1617e1..92ed038 100644 --- a/usr.bin/uudecode/uudecode.c +++ b/usr.bin/uudecode/uudecode.c @@ -42,7 +42,7 @@ static const char copyright[] = static char sccsid[] = "@(#)uudecode.c 8.2 (Berkeley) 4/2/94"; #endif static const char rcsid[] = - "$Id$"; + "$Id: uudecode.c,v 1.9 1997/08/22 06:51:43 charnier Exp $"; #endif /* not lint */ /* @@ -160,7 +160,7 @@ decode2(flag) warnx("%s: illegal ~user", filename); return(1); } - *p++ = NULL; + *p++ = '\0'; if (!(pw = getpwnam(buf + 1))) { warnx("%s: no user %s", filename, buf); return(1); -- cgit v1.1