Use NULL for pointers instead of 0.
MFC after: 2 weeks.
This commit is contained in:
parent
ec23a76360
commit
8e58be03e7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=298234
@ -575,7 +575,7 @@ natm_delete(int argc, char *argv[])
|
|||||||
TAILQ_FOREACH(aif, &diagif_list, link)
|
TAILQ_FOREACH(aif, &diagif_list, link)
|
||||||
if (strcmp(aif->ifname, argv[0]) == 0)
|
if (strcmp(aif->ifname, argv[0]) == 0)
|
||||||
break;
|
break;
|
||||||
if (aif == 0)
|
if (aif == NULL)
|
||||||
errx(1, "no such interface '%s'", argv[0]);
|
errx(1, "no such interface '%s'", argv[0]);
|
||||||
|
|
||||||
vpi = parse_num(argv[1], "VPI", 0xff);
|
vpi = parse_num(argv[1], "VPI", 0xff);
|
||||||
|
Loading…
Reference in New Issue
Block a user