From bd43e67e5934074ef3b76e262693f9010576cf06 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sun, 26 Oct 2014 12:16:53 +0200 Subject: [PATCH] Avoid unsigned vs. signed comparison warning Signed-off-by: Jouni Malinen --- wpa_supplicant/wifi_display.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wpa_supplicant/wifi_display.c b/wpa_supplicant/wifi_display.c index 715b67729..5c06e42ab 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;