Don't confuse NULL and 0, use 0 where an integer is expected.
This commit is contained in:
parent
76bd585721
commit
4e0dea9a30
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=125078
@ -479,7 +479,7 @@ ng_source_request_output_ifp(sc_p sc)
|
||||
if (msg == NULL)
|
||||
return (ENOBUFS);
|
||||
|
||||
NG_SEND_MSG_HOOK(error, sc->node, msg, sc->output.hook, NULL);
|
||||
NG_SEND_MSG_HOOK(error, sc->node, msg, sc->output.hook, 0);
|
||||
return (error);
|
||||
}
|
||||
|
||||
@ -547,7 +547,7 @@ ng_source_set_autosrc(sc_p sc, u_int32_t flag)
|
||||
return(ENOBUFS);
|
||||
|
||||
*(u_int32_t *)msg->data = flag;
|
||||
NG_SEND_MSG_HOOK(error, sc->node, msg, sc->output.hook, NULL);
|
||||
NG_SEND_MSG_HOOK(error, sc->node, msg, sc->output.hook, 0);
|
||||
return (error);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user