summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2018-11-30 09:26:07 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2018-11-30 09:26:07 +0000
commit8a2efe191810309337ff05036b425b29ebacd3ba (patch)
treea4077d8feb7678c219fc4cd5837e246d9b58f060 /sys
parentc1c3bd9913d64f42f690e3d655bbc72017a9da0c (diff)
MH_ALIGN -> m_align and make the spacing look the same in all three places.
OK bluhm@
Diffstat (limited to 'sys')
-rw-r--r--sys/net80211/ieee80211_output.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/net80211/ieee80211_output.c b/sys/net80211/ieee80211_output.c
index 33e03633c0b..2f6e0e77d2e 100644
--- a/sys/net80211/ieee80211_output.c
+++ b/sys/net80211/ieee80211_output.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ieee80211_output.c,v 1.122 2017/12/14 18:52:17 stsp Exp $ */
+/* $OpenBSD: ieee80211_output.c,v 1.123 2018/11/30 09:26:06 claudio Exp $ */
/* $NetBSD: ieee80211_output.c,v 1.13 2004/05/31 11:02:55 dyoung Exp $ */
/*-
@@ -1262,7 +1262,7 @@ ieee80211_get_auth(struct ieee80211com *ic, struct ieee80211_node *ni,
MGETHDR(m, M_DONTWAIT, MT_DATA);
if (m == NULL)
return NULL;
- MH_ALIGN(m, 2 * 3);
+ m_align(m, 2 * 3);
m->m_pkthdr.len = m->m_len = 2 * 3;
frm = mtod(m, u_int8_t *);
@@ -1286,9 +1286,9 @@ ieee80211_get_deauth(struct ieee80211com *ic, struct ieee80211_node *ni,
MGETHDR(m, M_DONTWAIT, MT_DATA);
if (m == NULL)
return NULL;
- MH_ALIGN(m, 2);
-
+ m_align(m, 2);
m->m_pkthdr.len = m->m_len = 2;
+
*mtod(m, u_int16_t *) = htole16(reason);
return m;
@@ -1446,9 +1446,9 @@ ieee80211_get_disassoc(struct ieee80211com *ic, struct ieee80211_node *ni,
MGETHDR(m, M_DONTWAIT, MT_DATA);
if (m == NULL)
return NULL;
- MH_ALIGN(m, 2);
-
+ m_align(m, 2);
m->m_pkthdr.len = m->m_len = 2;
+
*mtod(m, u_int16_t *) = htole16(reason);
return m;