]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
FST: Silence compiler warning on WPA_ASSERT
authorJouni Malinen <j@w1.fi>
Sun, 29 Jan 2017 16:45:29 +0000 (18:45 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 29 Jan 2017 16:45:29 +0000 (18:45 +0200)
This was triggering a sign-compare warning.

Signed-off-by: Jouni Malinen <j@w1.fi>
src/fst/fst_group.c

index 321d40d50cd2377da68b09d3e565173b97138fd5..a4ae016d916358142765eafb49b4d3644579ef06 100644 (file)
@@ -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="