Compare with 0 if comparing an integer, not with NULL.

This commit is contained in:
Hartmut Brandt 2004-04-14 16:09:20 +00:00
parent 9de3b3505c
commit c254ec5573
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=128235
2 changed files with 2 additions and 2 deletions

View File

@ -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) {

View File

@ -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) {