aboutsummaryrefslogtreecommitdiffstats
path: root/src/drivers/driver_hostap.h
diff options
context:
space:
mode:
authorPavel Roskin <proski@gnu.org>2008-06-06 11:17:03 (GMT)
committerJouni Malinen <j@w1.fi>2008-06-06 11:17:03 (GMT)
commitf3833aee90edbebd692669ead38cbf550a8cb007 (patch)
treec7bfd3ab8c31199743ef7210f684343247b97cd5 /src/drivers/driver_hostap.h
parentad844747cac22312edb1996f10a678c055282c1a (diff)
downloadhostap-f3833aee90edbebd692669ead38cbf550a8cb007.zip
hostap-f3833aee90edbebd692669ead38cbf550a8cb007.tar.gz
hostap-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 'src/drivers/driver_hostap.h')
-rw-r--r--src/drivers/driver_hostap.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/drivers/driver_hostap.h b/src/drivers/driver_hostap.h
index a83322f..a2508ed 100644
--- a/src/drivers/driver_hostap.h
+++ b/src/drivers/driver_hostap.h
@@ -84,9 +84,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()
*/