diff options
author | Ruslan Ermilov <ru@FreeBSD.org> | 2005-02-08 10:31:55 +0000 |
---|---|---|
committer | Ruslan Ermilov <ru@FreeBSD.org> | 2005-02-08 10:31:55 +0000 |
commit | a921fb33b6acec81d0b84e69468c32140f91282a (patch) | |
tree | 5eacb81041107680ff99a80228339b416ae6bbfc /sys/netgraph | |
parent | 363de7f68317773fc61b3737bb118e76764098d0 (diff) | |
download | src-a921fb33b6acec81d0b84e69468c32140f91282a.tar.gz src-a921fb33b6acec81d0b84e69468c32140f91282a.zip |
bzero() -> M_ZERO.
Notes
Notes:
svn path=/head/; revision=141502
Diffstat (limited to 'sys/netgraph')
-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 e4f2198f0578..30e5d945afb9 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 e9c8ce4fa5df..0603f369934c 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 4d45efcb5fb3..15b60572a7c3 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); |