privsep: Fix a compiler warning on unsigned/signed comparison
Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
2e997eece5
commit
32d4fe9549
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue