aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2012-01-25 15:41:59 (GMT)
committerJouni Malinen <j@w1.fi>2012-01-25 15:41:59 (GMT)
commit1e49ccebf7f655aca3b3f887aa43369f9b61bf14 (patch)
tree2bca4006c547c2c13e4c353a6de6cbd2004ce5ee /src
parentb1aebbc427c6a78e7c7526cc88b5576e410a1729 (diff)
downloadhostap-1e49ccebf7f655aca3b3f887aa43369f9b61bf14.zip
hostap-1e49ccebf7f655aca3b3f887aa43369f9b61bf14.tar.gz
hostap-1e49ccebf7f655aca3b3f887aa43369f9b61bf14.tar.bz2
pcsc: Fix compiler warning on signed vs. unsigned comparison
Signed-hostap: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'src')
-rw-r--r--src/utils/pcsc_funcs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/pcsc_funcs.c b/src/utils/pcsc_funcs.c
index aecc6f7..de8b553 100644
--- a/src/utils/pcsc_funcs.c
+++ b/src/utils/pcsc_funcs.c
@@ -1059,7 +1059,7 @@ int scard_get_mnc_len(struct scard_data *scard)
wpa_printf(MSG_DEBUG, "SCARD: MNC length not available");
return -7;
}
- if (file_size < 4 || file_size > sizeof(buf)) {
+ if (file_size < 4 || file_size > (int) sizeof(buf)) {
wpa_printf(MSG_DEBUG, "SCARD: invalid file length=%ld",
(long) file_size);
return -4;