diff options
author | Pavel Roskin <proski@gnu.org> | 2008-06-06 14:17:03 +0300 |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2008-06-06 14:17:03 +0300 |
commit | f3833aee90edbebd692669ead38cbf550a8cb007 (patch) | |
tree | c7bfd3ab8c31199743ef7210f684343247b97cd5 /hostapd | |
parent | ad844747cac22312edb1996f10a678c055282c1a (diff) | |
download | external_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.h | 4 |
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() */ |