bzero() -> M_ZERO.

This commit is contained in:
Ruslan Ermilov 2005-02-08 10:31:55 +00:00
parent 363de7f683
commit a921fb33b6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=141502
3 changed files with 2 additions and 5 deletions

View File

@ -419,10 +419,9 @@ ng_eiface_constructor(node_p node)
int error = 0;
/* Allocate node and interface private structures */
MALLOC(priv, priv_p, sizeof(*priv), M_NETGRAPH, M_WAITOK);
MALLOC(priv, priv_p, sizeof(*priv), M_NETGRAPH, M_NOWAIT | M_ZERO);
if (priv == NULL)
return (ENOMEM);
bzero(priv, sizeof(*priv));
ifp = &(priv->arpcom.ac_if);

View File

@ -1102,10 +1102,9 @@ ng_fec_constructor(node_p node)
int error = 0;
/* Allocate node and interface private structures */
MALLOC(priv, priv_p, sizeof(*priv), M_NETGRAPH, M_NOWAIT);
MALLOC(priv, priv_p, sizeof(*priv), M_NETGRAPH, M_NOWAIT | M_ZERO);
if (priv == NULL)
return (ENOMEM);
bzero(priv, sizeof(*priv));
ifp = &priv->arpcom.ac_if;
b = &priv->fec_bundle;

View File

@ -88,7 +88,6 @@ ng_split_constructor(node_p node)
MALLOC(priv, priv_p, sizeof(*priv), M_NETGRAPH, M_ZERO | M_NOWAIT);
if (priv == NULL)
return (ENOMEM);
bzero(priv, sizeof(*priv));
/* Link together node and private info */
NG_NODE_SET_PRIVATE(node, priv);