summaryrefslogtreecommitdiffstats
path: root/sbin/atm
diff options
context:
space:
mode:
authoraraujo <araujo@FreeBSD.org>2016-04-19 00:59:15 +0000
committeraraujo <araujo@FreeBSD.org>2016-04-19 00:59:15 +0000
commit801d6e7892a15d7d42b3351677e88447fdcf93b2 (patch)
tree1aed4a5a2b500b7d6384e58a2f6609deb32eeef5 /sbin/atm
parentde70093c620fdeab9a53f1b2da8f263bd85aebc9 (diff)
downloadFreeBSD-src-801d6e7892a15d7d42b3351677e88447fdcf93b2.zip
FreeBSD-src-801d6e7892a15d7d42b3351677e88447fdcf93b2.tar.gz
Use NULL for pointers instead of 0.
MFC after: 2 weeks.
Diffstat (limited to 'sbin/atm')
-rw-r--r--sbin/atm/atmconfig/natm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/atm/atmconfig/natm.c b/sbin/atm/atmconfig/natm.c
index 29f5ce2..cac3880 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);
OpenPOWER on IntegriCloud