privsep: Fix a compiler warning on unsigned/signed comparison

Signed-off-by: Jouni Malinen <j@w1.fi>
master
Jouni Malinen 8 years ago
parent 2e997eece5
commit 32d4fe9549

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

Loading…
Cancel
Save