aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/wpa_common.h
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2008-03-12 07:33:18 (GMT)
committerJouni Malinen <j@w1.fi>2008-03-12 07:33:18 (GMT)
commitccfab35a6a3fd8f7edfb589fc02da5efc4d43742 (patch)
treef1c0f1afe7b3df3c7b556eee4956800ffeccad4b /src/common/wpa_common.h
parent502a293e303955f616a61dc4a103c102686b3c90 (diff)
downloadhostap-ccfab35a6a3fd8f7edfb589fc02da5efc4d43742.zip
hostap-ccfab35a6a3fd8f7edfb589fc02da5efc4d43742.tar.gz
hostap-ccfab35a6a3fd8f7edfb589fc02da5efc4d43742.tar.bz2
Silence gcc 4.3.0 warnings about invalid array indexes
Diffstat (limited to 'src/common/wpa_common.h')
-rw-r--r--src/common/wpa_common.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/wpa_common.h b/src/common/wpa_common.h
index f88fbb1..936df73 100644
--- a/src/common/wpa_common.h
+++ b/src/common/wpa_common.h
@@ -87,8 +87,8 @@
#define WPA_OUI_TYPE RSN_SELECTOR(0x00, 0x50, 0xf2, 1)
-#define RSN_SELECTOR_PUT(a, val) WPA_PUT_BE32((a), (val))
-#define RSN_SELECTOR_GET(a) WPA_GET_BE32((a))
+#define RSN_SELECTOR_PUT(a, val) WPA_PUT_BE32((u8 *) (a), (val))
+#define RSN_SELECTOR_GET(a) WPA_GET_BE32((const u8 *) (a))
#define RSN_NUM_REPLAY_COUNTERS_1 0
#define RSN_NUM_REPLAY_COUNTERS_2 1