From: Jouni Malinen Date: Sun, 29 Jan 2017 16:45:29 +0000 (+0200) Subject: FST: Silence compiler warning on WPA_ASSERT X-Git-Tag: hostap_2_7~1708 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=968dce9b13052140e516e58fe5f1ccdb3c137e85;p=thirdparty%2Fhostap.git FST: Silence compiler warning on WPA_ASSERT This was triggering a sign-compare warning. Signed-off-by: Jouni Malinen --- diff --git a/src/fst/fst_group.c b/src/fst/fst_group.c index 321d40d50..a4ae016d9 100644 --- a/src/fst/fst_group.c +++ b/src/fst/fst_group.c @@ -29,7 +29,7 @@ static void fst_dump_mb_ies(const char *group_id, const char *ifname, const struct multi_band_ie *mbie = (const struct multi_band_ie *) p; WPA_ASSERT(mbie->eid == WLAN_EID_MULTI_BAND); - WPA_ASSERT(2 + mbie->len >= sizeof(*mbie)); + WPA_ASSERT(2U + mbie->len >= sizeof(*mbie)); fst_printf(MSG_WARNING, "%s: %s: mb_ctrl=%u band_id=%u op_class=%u chan=%u bssid="