diff options
author | araujo <araujo@FreeBSD.org> | 2016-04-20 01:26:03 +0000 |
---|---|---|
committer | araujo <araujo@FreeBSD.org> | 2016-04-20 01:26:03 +0000 |
commit | b9140f06e39542ce964c5ebdceb847b4bf624130 (patch) | |
tree | 56ff47d925d1f49957bfba6e126dfa7355d23e91 /usr.bin/systat/netstat.c | |
parent | 7ce919789adf84fa6f5faf5c751276f3544d0992 (diff) | |
download | FreeBSD-src-b9140f06e39542ce964c5ebdceb847b4bf624130.zip FreeBSD-src-b9140f06e39542ce964c5ebdceb847b4bf624130.tar.gz |
Use NULL instead of 0 for pointers.
gethostbyname(3) will return NULL for error status.
MFC after: 2 weeks.
Diffstat (limited to 'usr.bin/systat/netstat.c')
-rw-r--r-- | usr.bin/systat/netstat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/systat/netstat.c b/usr.bin/systat/netstat.c index 56bc34e..90ddd25 100644 --- a/usr.bin/systat/netstat.c +++ b/usr.bin/systat/netstat.c @@ -605,7 +605,7 @@ inetname(struct sockaddr *sa) if (np) cp = np->n_name; } - if (cp == 0) { + if (cp == NULL) { hp = gethostbyaddr((char *)&in, sizeof (in), AF_INET); if (hp) cp = hp->h_name; |