diff options
author | araujo <araujo@FreeBSD.org> | 2016-04-18 14:44:01 +0000 |
---|---|---|
committer | araujo <araujo@FreeBSD.org> | 2016-04-18 14:44:01 +0000 |
commit | 889ed0c7e47e4745ee31554d05b38302364b6b8a (patch) | |
tree | 0a4bfd2a230a715e696fb302fb99d7a9d4d85d96 | |
parent | 1bed3a70f7fc880e896598fea08e7a8e48cabf76 (diff) | |
download | FreeBSD-src-889ed0c7e47e4745ee31554d05b38302364b6b8a.zip FreeBSD-src-889ed0c7e47e4745ee31554d05b38302364b6b8a.tar.gz |
Use NULL instead of 0 for pointers.
strchr(3) will return NULL if the character does not appear in the
string.
MFC after: 2 weeks.
-rw-r--r-- | usr.bin/finger/net.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/finger/net.c b/usr.bin/finger/net.c index da3a4e1..db5f96d 100644 --- a/usr.bin/finger/net.c +++ b/usr.bin/finger/net.c @@ -68,7 +68,7 @@ netfinger(char *name) static struct addrinfo hint; host = strrchr(name, '@'); - if (host == 0) + if (host == NULL) return; *host++ = '\0'; signal(SIGALRM, cleanup); @@ -92,7 +92,7 @@ netfinger(char *name) else printf("[%s]\n", ai0->ai_canonname); - for (ai = ai0; ai != 0; ai = ai->ai_next) { + for (ai = ai0; ai != NULL; ai = ai->ai_next) { if (multi) trying(ai); |