Replace a call to bzero() with an M_ZERO flag. Replace the MALLOC() with

malloc().
This commit is contained in:
Hartmut Brandt 2004-01-26 14:44:36 +00:00
parent 4321c5077c
commit b1b70498ba
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=125030

View File

@ -217,10 +217,9 @@ ng_source_constructor(node_p node)
{
sc_p sc;
MALLOC(sc, sc_p, sizeof(*sc), M_NETGRAPH, M_NOWAIT);
sc = malloc(sizeof(*sc), M_NETGRAPH, M_NOWAIT | M_ZERO);
if (sc == NULL)
return (ENOMEM);
bzero(sc, sizeof(*sc));
NG_NODE_SET_PRIVATE(node, sc);
sc->node = node;