]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
privsep: Fix a compiler warning on unsigned/signed comparison
authorJouni Malinen <j@w1.fi>
Tue, 22 Mar 2016 09:31:30 +0000 (11:31 +0200)
committerJouni Malinen <j@w1.fi>
Tue, 22 Mar 2016 15:41:37 +0000 (17:41 +0200)
Signed-off-by: Jouni Malinen <j@w1.fi>
src/drivers/driver_privsep.c

index 762c12ff4c06d434792b3bfdaf28e06c97931fc3..43d41937d474c60ff467732dea7dd07dc6a0d5df 100644 (file)
@@ -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);