diff options
author | ru <ru@FreeBSD.org> | 2005-02-08 10:31:55 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2005-02-08 10:31:55 +0000 |
commit | 2a53ea9d2df2eabee5e673017a4de812c7ad3a8e (patch) | |
tree | 5eacb81041107680ff99a80228339b416ae6bbfc | |
parent | 4edf9621a3bf813a6d4a64674a466518ca4bcaba (diff) | |
download | FreeBSD-src-2a53ea9d2df2eabee5e673017a4de812c7ad3a8e.zip FreeBSD-src-2a53ea9d2df2eabee5e673017a4de812c7ad3a8e.tar.gz |
bzero() -> M_ZERO.
-rw-r--r-- | sys/netgraph/ng_eiface.c | 3 | ||||
-rw-r--r-- | sys/netgraph/ng_fec.c | 3 | ||||
-rw-r--r-- | sys/netgraph/ng_split.c | 1 |
3 files changed, 2 insertions, 5 deletions
diff --git a/sys/netgraph/ng_eiface.c b/sys/netgraph/ng_eiface.c index e4f2198..30e5d94 100644 --- a/sys/netgraph/ng_eiface.c +++ b/sys/netgraph/ng_eiface.c @@ -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); diff --git a/sys/netgraph/ng_fec.c b/sys/netgraph/ng_fec.c index e9c8ce4..0603f36 100644 --- a/sys/netgraph/ng_fec.c +++ b/sys/netgraph/ng_fec.c @@ -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; diff --git a/sys/netgraph/ng_split.c b/sys/netgraph/ng_split.c index 4d45efc..15b6057 100644 --- a/sys/netgraph/ng_split.c +++ b/sys/netgraph/ng_split.c @@ -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); |