diff options
author | sam <sam@FreeBSD.org> | 2008-12-18 23:00:09 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2008-12-18 23:00:09 +0000 |
commit | 7aaeeb07043adcd94c535d5c394f69f9c560c4ad (patch) | |
tree | b42405564087361d41f618b7f4c6bab0f5f3fd52 /sys/net80211/ieee80211_power.c | |
parent | b3c73dcac3e506d7568bd9ad1458369b01018e33 (diff) | |
download | FreeBSD-src-7aaeeb07043adcd94c535d5c394f69f9c560c4ad.zip FreeBSD-src-7aaeeb07043adcd94c535d5c394f69f9c560c4ad.tar.gz |
convert MALLOC/FREE to malloc/free
Diffstat (limited to 'sys/net80211/ieee80211_power.c')
-rw-r--r-- | sys/net80211/ieee80211_power.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net80211/ieee80211_power.c b/sys/net80211/ieee80211_power.c index b2ace4a..aad82ba 100644 --- a/sys/net80211/ieee80211_power.c +++ b/sys/net80211/ieee80211_power.c @@ -80,7 +80,7 @@ ieee80211_power_latevattach(struct ieee80211vap *vap) */ if (vap->iv_opmode == IEEE80211_M_HOSTAP) { vap->iv_tim_len = howmany(vap->iv_max_aid,8) * sizeof(uint8_t); - MALLOC(vap->iv_tim_bitmap, uint8_t *, vap->iv_tim_len, + vap->iv_tim_bitmap = (uint8_t *) malloc(vap->iv_tim_len, M_80211_POWER, M_NOWAIT | M_ZERO); if (vap->iv_tim_bitmap == NULL) { printf("%s: no memory for TIM bitmap!\n", __func__); @@ -94,7 +94,7 @@ void ieee80211_power_vdetach(struct ieee80211vap *vap) { if (vap->iv_tim_bitmap != NULL) { - FREE(vap->iv_tim_bitmap, M_80211_POWER); + free(vap->iv_tim_bitmap, M_80211_POWER); vap->iv_tim_bitmap = NULL; } } |