diff options
author | Moritz Jodeit <moritz@cvs.openbsd.org> | 2007-05-15 19:42:06 +0000 |
---|---|---|
committer | Moritz Jodeit <moritz@cvs.openbsd.org> | 2007-05-15 19:42:06 +0000 |
commit | 411c924837277917adc0e6333223ae43187d4f16 (patch) | |
tree | b73d45176e15af75c506a06b0f51bdd7113153b7 /usr.bin/tip/log.c | |
parent | b20a27a5d8705aab699f34d88e11460c2f5794f7 (diff) |
Remove useless NOxxx defines and use NULL instead.
No binary change.
OK ray@
Diffstat (limited to 'usr.bin/tip/log.c')
-rw-r--r-- | usr.bin/tip/log.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/tip/log.c b/usr.bin/tip/log.c index bb899d896a4..2b485d59941 100644 --- a/usr.bin/tip/log.c +++ b/usr.bin/tip/log.c @@ -1,4 +1,4 @@ -/* $OpenBSD: log.c,v 1.8 2006/03/16 19:32:46 deraadt Exp $ */ +/* $OpenBSD: log.c,v 1.9 2007/05/15 19:42:05 moritz Exp $ */ /* $NetBSD: log.c,v 1.4 1994/12/24 17:56:28 cgd Exp $ */ /* @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)log.c 8.1 (Berkeley) 6/6/93"; #endif -static const char rcsid[] = "$OpenBSD: log.c,v 1.8 2006/03/16 19:32:46 deraadt Exp $"; +static const char rcsid[] = "$OpenBSD: log.c,v 1.9 2007/05/15 19:42:05 moritz Exp $"; #endif /* not lint */ #include "tip.h" @@ -58,8 +58,8 @@ logent(char *group, char *num, char *acu, char *message) perror("flock"); return; } - if ((user = getlogin()) == NOSTR) { - if ((pwd = getpwuid(getuid())) == NOPWD) + if ((user = getlogin()) == NULL) { + if ((pwd = getpwuid(getuid())) == NULL) user = "???"; else user = pwd->pw_name; |