From 66f807ed8b3634dc73d9f7526c484e43f094c0ee Mon Sep 17 00:00:00 2001 From: des Date: Thu, 23 Oct 2008 15:53:51 +0000 Subject: Retire the MALLOC and FREE macros. They are an abomination unto style(9). MFC after: 3 months --- sys/netgraph/ng_gif.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/netgraph/ng_gif.c') diff --git a/sys/netgraph/ng_gif.c b/sys/netgraph/ng_gif.c index 96113d2..22d085a 100644 --- a/sys/netgraph/ng_gif.c +++ b/sys/netgraph/ng_gif.c @@ -241,7 +241,7 @@ ng_gif_attach(struct ifnet *ifp) } /* Allocate private data */ - MALLOC(priv, priv_p, sizeof(*priv), M_NETGRAPH, M_NOWAIT | M_ZERO); + priv = malloc(sizeof(*priv), M_NETGRAPH, M_NOWAIT | M_ZERO); if (priv == NULL) { log(LOG_ERR, "%s: can't %s for %s\n", __func__, "allocate memory", ifp->if_xname); @@ -503,7 +503,7 @@ ng_gif_shutdown(node_p node) * Assume the ifp has already been freed. */ NG_NODE_SET_PRIVATE(node, NULL); - FREE(priv, M_NETGRAPH); + free(priv, M_NETGRAPH); NG_NODE_UNREF(node); /* free node itself */ return (0); } -- cgit v1.1