aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2016-03-22 09:31:30 (GMT)
committerJouni Malinen <j@w1.fi>2016-03-22 15:41:37 (GMT)
commit32d4fe9549436e20921fae79da30cdbe0d9bb853 (patch)
tree04d947fac2b6d4ad8a9ff64bd86125a95fd6a179
parent2e997eece5776eca0a99d53893e343539f9f8eb2 (diff)
downloadhostap-32d4fe9549436e20921fae79da30cdbe0d9bb853.zip
hostap-32d4fe9549436e20921fae79da30cdbe0d9bb853.tar.gz
hostap-32d4fe9549436e20921fae79da30cdbe0d9bb853.tar.bz2
privsep: Fix a compiler warning on unsigned/signed comparison
Signed-off-by: Jouni Malinen <j@w1.fi>
-rw-r--r--src/drivers/driver_privsep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/driver_privsep.c b/src/drivers/driver_privsep.c
index 762c12f..43d4193 100644
--- a/src/drivers/driver_privsep.c
+++ b/src/drivers/driver_privsep.c
@@ -161,7 +161,7 @@ wpa_driver_privsep_get_scan_results2(void *priv)
return NULL;
}
- while (results->num < (size_t) num && end - pos > sizeof(int)) {
+ while (results->num < (size_t) num && end - pos > (int) sizeof(int)) {
int len;
os_memcpy(&len, pos, sizeof(int));
pos += sizeof(int);