diff options
author | Takashi Iwai <tiwai@suse.de> | 2008-07-31 13:03:10 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-08-01 15:31:35 -0400 |
commit | 3d0f823953e6b5aa36fc098de2d27e15da220974 (patch) | |
tree | 70eb359e7fd35599a9296f9eb53850d127cd7868 | |
parent | fb55d887c5bd9054ec069534e1ef9eb8d9a983c6 (diff) |
prism54 - Use offsetof()
Use the standard offsetof() macro to fix a compile warning below:
CC [M] drivers/net/wireless/prism54/isl_ioctl.o
drivers/net/wireless/prism54/isl_ioctl.c: In function 'prism2_ioctl_set_generic_element':
drivers/net/wireless/prism54/isl_ioctl.c:2658: warning: cast from pointer to integer of different size
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/net/wireless/prism54/isl_ioctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/prism54/isl_ioctl.c b/drivers/net/wireless/prism54/isl_ioctl.c index 97fa14e0a479..3d75a7137d3c 100644 --- a/drivers/net/wireless/prism54/isl_ioctl.c +++ b/drivers/net/wireless/prism54/isl_ioctl.c | |||
@@ -2518,7 +2518,7 @@ enum { | |||
2518 | 2518 | ||
2519 | #define PRISM2_HOSTAPD_MAX_BUF_SIZE 1024 | 2519 | #define PRISM2_HOSTAPD_MAX_BUF_SIZE 1024 |
2520 | #define PRISM2_HOSTAPD_GENERIC_ELEMENT_HDR_LEN \ | 2520 | #define PRISM2_HOSTAPD_GENERIC_ELEMENT_HDR_LEN \ |
2521 | ((int) (&((struct prism2_hostapd_param *) 0)->u.generic_elem.data)) | 2521 | offsetof(struct prism2_hostapd_param, u.generic_elem.data) |
2522 | 2522 | ||
2523 | /* Maximum length for algorithm names (-1 for nul termination) | 2523 | /* Maximum length for algorithm names (-1 for nul termination) |
2524 | * used in ioctl() */ | 2524 | * used in ioctl() */ |