diff options
author | harti <harti@FreeBSD.org> | 2004-04-14 16:09:20 +0000 |
---|---|---|
committer | harti <harti@FreeBSD.org> | 2004-04-14 16:09:20 +0000 |
commit | 48c5eee60f9e59a2cb5cae506e344c4d3ed753b4 (patch) | |
tree | d4acecf153dbb07776970ef42b626c22f328f446 /usr.sbin/bsnmpd/modules | |
parent | 7d1905e15b6b8dec946154176182a297c231bfd1 (diff) | |
download | FreeBSD-src-48c5eee60f9e59a2cb5cae506e344c4d3ed753b4.zip FreeBSD-src-48c5eee60f9e59a2cb5cae506e344c4d3ed753b4.tar.gz |
Compare with 0 if comparing an integer, not with NULL.
Diffstat (limited to 'usr.sbin/bsnmpd/modules')
-rw-r--r-- | usr.sbin/bsnmpd/modules/snmp_netgraph/snmp_netgraph.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/bsnmpd/modules/snmp_netgraph/snmp_netgraph.c b/usr.sbin/bsnmpd/modules/snmp_netgraph/snmp_netgraph.c index b4751fa..5aad23b 100644 --- a/usr.sbin/bsnmpd/modules/snmp_netgraph/snmp_netgraph.c +++ b/usr.sbin/bsnmpd/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) { |