aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/wifi_display.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2014-10-26 10:16:53 (GMT)
committerJouni Malinen <j@w1.fi>2014-10-26 15:01:37 (GMT)
commitbd43e67e5934074ef3b76e262693f9010576cf06 (patch)
tree30ce1ea11e1df0b8c065b8706ad17f7a853faf72 /wpa_supplicant/wifi_display.c
parent2f06bcb361c26d064723e4ad229e020d325f5d2e (diff)
downloadhostap-bd43e67e5934074ef3b76e262693f9010576cf06.zip
hostap-bd43e67e5934074ef3b76e262693f9010576cf06.tar.gz
hostap-bd43e67e5934074ef3b76e262693f9010576cf06.tar.bz2
Avoid unsigned vs. signed comparison warning
Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wpa_supplicant/wifi_display.c')
-rw-r--r--wpa_supplicant/wifi_display.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wpa_supplicant/wifi_display.c b/wpa_supplicant/wifi_display.c
index 715b677..5c06e42 100644
--- a/wpa_supplicant/wifi_display.c
+++ b/wpa_supplicant/wifi_display.c
@@ -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;