aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd
diff options
context:
space:
mode:
authorPavel Roskin <proski@gnu.org>2008-06-06 14:17:03 +0300
committerJouni Malinen <j@w1.fi>2008-06-06 14:17:03 +0300
commitf3833aee90edbebd692669ead38cbf550a8cb007 (patch)
treec7bfd3ab8c31199743ef7210f684343247b97cd5 /hostapd
parentad844747cac22312edb1996f10a678c055282c1a (diff)
downloadexternal_wpa_supplicant_8_ti-f3833aee90edbebd692669ead38cbf550a8cb007.zip
external_wpa_supplicant_8_ti-f3833aee90edbebd692669ead38cbf550a8cb007.tar.gz
external_wpa_supplicant_8_ti-f3833aee90edbebd692669ead38cbf550a8cb007.tar.bz2
Fix compile warnings on 64-bit systems
Don't cast pointers to int in definitions of PRISM2_HOSTAPD_RID_HDR_LEN and PRISM2_HOSTAPD_GENERIC_ELEMENT_HDR_LEN. Use size_t instead. That's actually what the code needs.
Diffstat (limited to 'hostapd')
-rw-r--r--hostapd/hostap_common.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/hostapd/hostap_common.h b/hostapd/hostap_common.h
index 1e38df3..5a57dca 100644
--- a/hostapd/hostap_common.h
+++ b/hostapd/hostap_common.h
@@ -147,9 +147,9 @@ enum {
#define PRISM2_HOSTAPD_MAX_BUF_SIZE 1024
#define PRISM2_HOSTAPD_RID_HDR_LEN \
-((int) (&((struct prism2_hostapd_param *) 0)->u.rid.data))
+((size_t) (&((struct prism2_hostapd_param *) 0)->u.rid.data))
#define PRISM2_HOSTAPD_GENERIC_ELEMENT_HDR_LEN \
-((int) (&((struct prism2_hostapd_param *) 0)->u.generic_elem.data))
+((size_t) (&((struct prism2_hostapd_param *) 0)->u.generic_elem.data))
/* Maximum length for algorithm names (-1 for nul termination) used in ioctl()
*/