summaryrefslogtreecommitdiff
path: root/usr.bin/finger/net.c
diff options
context:
space:
mode:
authorMarcelo Araujo <araujo@FreeBSD.org>2016-04-18 14:44:01 +0000
committerMarcelo Araujo <araujo@FreeBSD.org>2016-04-18 14:44:01 +0000
commit7a4b1114b1d0bebc3198b5b91d9e6265e7e81ac2 (patch)
tree0a4bfd2a230a715e696fb302fb99d7a9d4d85d96 /usr.bin/finger/net.c
parent5eadfbfcd01e23d3de1958c013ca556dbf0b5458 (diff)
downloadsrc-test2-7a4b1114b1d0bebc3198b5b91d9e6265e7e81ac2.tar.gz
src-test2-7a4b1114b1d0bebc3198b5b91d9e6265e7e81ac2.zip
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.
Notes
Notes: svn path=/head/; revision=298209
Diffstat (limited to 'usr.bin/finger/net.c')
-rw-r--r--usr.bin/finger/net.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/finger/net.c b/usr.bin/finger/net.c
index da3a4e1b2fe4..db5f96dd8526 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);