From 2a53ea9d2df2eabee5e673017a4de812c7ad3a8e Mon Sep 17 00:00:00 2001 From: ru Date: Tue, 8 Feb 2005 10:31:55 +0000 Subject: bzero() -> M_ZERO. --- sys/netgraph/ng_eiface.c | 3 +-- sys/netgraph/ng_fec.c | 3 +-- 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); -- cgit v1.1