mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-04 05:58:57 +00:00
bzero() -> M_ZERO.
This commit is contained in:
parent
363de7f683
commit
a921fb33b6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=141502
@ -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);
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user