diff options
author | harti <harti@FreeBSD.org> | 2004-01-26 14:44:36 +0000 |
---|---|---|
committer | harti <harti@FreeBSD.org> | 2004-01-26 14:44:36 +0000 |
commit | cc7ffd1cabeb4a543e86d6b3d1c245d05f82d0a5 (patch) | |
tree | b1c39c396324397b7eca9477d677e5e6ac1ee55c /sys/netgraph/ng_source.c | |
parent | 2d831aa28ae42e85fb575ed3392693b461f6b30a (diff) | |
download | FreeBSD-src-cc7ffd1cabeb4a543e86d6b3d1c245d05f82d0a5.zip FreeBSD-src-cc7ffd1cabeb4a543e86d6b3d1c245d05f82d0a5.tar.gz |
Replace a call to bzero() with an M_ZERO flag. Replace the MALLOC() with
malloc().
Diffstat (limited to 'sys/netgraph/ng_source.c')
-rw-r--r-- | sys/netgraph/ng_source.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/netgraph/ng_source.c b/sys/netgraph/ng_source.c index 303f814..c9fdd01 100644 --- a/sys/netgraph/ng_source.c +++ b/sys/netgraph/ng_source.c @@ -217,10 +217,9 @@ ng_source_constructor(node_p node) { sc_p sc; - MALLOC(sc, sc_p, sizeof(*sc), M_NETGRAPH, M_NOWAIT); + sc = malloc(sizeof(*sc), M_NETGRAPH, M_NOWAIT | M_ZERO); if (sc == NULL) return (ENOMEM); - bzero(sc, sizeof(*sc)); NG_NODE_SET_PRIVATE(node, sc); sc->node = node; |