From 48c5eee60f9e59a2cb5cae506e344c4d3ed753b4 Mon Sep 17 00:00:00 2001 From: harti Date: Wed, 14 Apr 2004 16:09:20 +0000 Subject: Compare with 0 if comparing an integer, not with NULL. --- usr.sbin/bsnmpd/modules/snmp_netgraph/snmp_netgraph.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr.sbin/bsnmpd') 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) { -- cgit v1.1