Avoid unsigned vs. signed comparison warning

Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
Jouni Malinen 2014-10-26 12:16:53 +02:00
parent 2f06bcb361
commit bd43e67e59

View file

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