summaryrefslogtreecommitdiffstats
path: root/lib/libbsnmp
diff options
context:
space:
mode:
authorharti <harti@FreeBSD.org>2004-04-14 16:09:20 +0000
committerharti <harti@FreeBSD.org>2004-04-14 16:09:20 +0000
commit48c5eee60f9e59a2cb5cae506e344c4d3ed753b4 (patch)
treed4acecf153dbb07776970ef42b626c22f328f446 /lib/libbsnmp
parent7d1905e15b6b8dec946154176182a297c231bfd1 (diff)
downloadFreeBSD-src-48c5eee60f9e59a2cb5cae506e344c4d3ed753b4.zip
FreeBSD-src-48c5eee60f9e59a2cb5cae506e344c4d3ed753b4.tar.gz
Compare with 0 if comparing an integer, not with NULL.
Diffstat (limited to 'lib/libbsnmp')
-rw-r--r--lib/libbsnmp/modules/snmp_netgraph/snmp_netgraph.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libbsnmp/modules/snmp_netgraph/snmp_netgraph.c b/lib/libbsnmp/modules/snmp_netgraph/snmp_netgraph.c
index b4751fa..5aad23b 100644
--- a/lib/libbsnmp/modules/snmp_netgraph/snmp_netgraph.c
+++ b/lib/libbsnmp/modules/snmp_netgraph/snmp_netgraph.c
@@ -743,7 +743,7 @@ ng_mkpeer_id(ng_ID_t id, const char *nodename, const char *type,
&mkpeer, sizeof(mkpeer)) == -1)
return (0);
- if ((id = ng_next_node_id_internal(id, NULL, hook, 0)) == NULL)
+ if ((id = ng_next_node_id_internal(id, NULL, hook, 0)) == 0)
return (0);
if (nodename != NULL) {
OpenPOWER on IntegriCloud