mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-14 20:37:06 +00:00
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.
This commit is contained in:
parent
5eadfbfcd0
commit
7a4b1114b1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=298209
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue