projects
/
wpasupplicant
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a35187e
)
bsd: Get rid of printf size_t warnings with 64-bit builds
author
Jouni Malinen
<jouni.malinen@atheros.com>
Fri, 29 May 2009 19:34:07 +0000
(22:34 +0300)
committer
Jouni Malinen
<j@w1.fi>
Fri, 29 May 2009 19:34:07 +0000
(22:34 +0300)
src/drivers/driver_bsd.c
patch
|
blob
|
history
diff --git
a/src/drivers/driver_bsd.c
b/src/drivers/driver_bsd.c
index
100f4b4
..
6311c17
100644
(file)
--- a/
src/drivers/driver_bsd.c
+++ b/
src/drivers/driver_bsd.c
@@
-387,7
+387,7
@@
bsd_set_key(const char *ifname, void *priv, wpa_alg alg,
}
if (key_len > sizeof(wk.ik_keydata)) {
}
if (key_len > sizeof(wk.ik_keydata)) {
- printf("%s: key length %d too big\n", __func__, key_len);
+ printf("%s: key length %d too big\n", __func__, (int) key_len);
return -3;
}
return -3;
}
@@
-660,7
+660,7
@@
bsd_send_eapol(void *priv, const u8 *addr, const u8 *data, size_t data_len,
bp = malloc(len);
if (bp == NULL) {
printf("EAPOL frame discarded, cannot malloc temp "
bp = malloc(len);
if (bp == NULL) {
printf("EAPOL frame discarded, cannot malloc temp "
- "buffer of size %u!\n", len);
+ "buffer of size %u!\n", (unsigned int) len);
return -1;
}
}
return -1;
}
}
@@
-1162,8
+1162,8
@@
wpa_driver_bsd_associate(void *priv, struct wpa_driver_associate_params *params)
wpa_printf(MSG_DEBUG,
"%s: ssid '%.*s' wpa ie len %u pairwise %u group %u key mgmt %u"
, __func__
wpa_printf(MSG_DEBUG,
"%s: ssid '%.*s' wpa ie len %u pairwise %u group %u key mgmt %u"
, __func__
- , params->ssid_len, params->ssid
- , params->wpa_ie_len
+ , (unsigned int) params->ssid_len, params->ssid
+ , (unsigned int) params->wpa_ie_len
, params->pairwise_suite
, params->group_suite
, params->key_mgmt_suite
, params->pairwise_suite
, params->group_suite
, params->key_mgmt_suite