privsep: Fix a compiler warning on unsigned/signed comparison

Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
Jouni Malinen 2016-03-22 11:31:30 +02:00
parent 2e997eece5
commit 32d4fe9549

View 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);