diff --git a/sbin/atm/atmconfig/natm.c b/sbin/atm/atmconfig/natm.c index 29f5ce231e0a..cac3880e8edf 100644 --- a/sbin/atm/atmconfig/natm.c +++ b/sbin/atm/atmconfig/natm.c @@ -575,7 +575,7 @@ natm_delete(int argc, char *argv[]) TAILQ_FOREACH(aif, &diagif_list, link) if (strcmp(aif->ifname, argv[0]) == 0) break; - if (aif == 0) + if (aif == NULL) errx(1, "no such interface '%s'", argv[0]); vpi = parse_num(argv[1], "VPI", 0xff);