diff options
author | sam <sam@FreeBSD.org> | 2004-04-02 23:02:24 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2004-04-02 23:02:24 +0000 |
commit | ddc6548865e2c9e7c496dbbfdf64e8c31b68964b (patch) | |
tree | 9140480be25724a5c986879210830c1a83aaaf58 /sys/net80211/ieee80211_node.c | |
parent | aaa98f8e29819d0db05113264092bfcb67ba0720 (diff) | |
download | FreeBSD-src-ddc6548865e2c9e7c496dbbfdf64e8c31b68964b.zip FreeBSD-src-ddc6548865e2c9e7c496dbbfdf64e8c31b68964b.tar.gz |
replace explicit malloc/free with MALLOC/FREE for portability
Obtained from: madwifi
Diffstat (limited to 'sys/net80211/ieee80211_node.c')
-rw-r--r-- | sys/net80211/ieee80211_node.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/net80211/ieee80211_node.c b/sys/net80211/ieee80211_node.c index 30bad55..447b1de 100644 --- a/sys/net80211/ieee80211_node.c +++ b/sys/net80211/ieee80211_node.c @@ -413,14 +413,16 @@ ieee80211_end_scan(struct ifnet *ifp) static struct ieee80211_node * ieee80211_node_alloc(struct ieee80211com *ic) { - return malloc(sizeof(struct ieee80211_node), M_80211_NODE, - M_NOWAIT | M_ZERO); + struct ieee80211_node *ni; + MALLOC(ni, struct ieee80211_node *, sizeof(struct ieee80211_node), + M_80211_NODE, M_NOWAIT | M_ZERO); + return ni; } static void ieee80211_node_free(struct ieee80211com *ic, struct ieee80211_node *ni) { - free(ni, M_80211_NODE); + FREE(ni, M_80211_NODE); } static void |