Avoid unsigned vs. signed comparison warning
Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
2f06bcb361
commit
bd43e67e59
1 changed files with 1 additions and 1 deletions
|
@ -292,7 +292,7 @@ int wifi_display_subelem_set_from_ies(struct wpa_global *global,
|
|||
wpa_printf(MSG_DEBUG, "WFD Sub-Element ID %d - len %d",
|
||||
*pos, len - 3);
|
||||
|
||||
if (len > end - pos)
|
||||
if (len > (unsigned int) (end - pos))
|
||||
break;
|
||||
|
||||
subelem = *pos;
|
||||
|
|
Loading…
Reference in a new issue