From: Max Stepanov Date: Tue, 6 Sep 2016 06:44:33 +0000 (+0300) Subject: P2P: Fix compilation warning in p2p_supplicant.c X-Git-Tag: hostap_2_6~41 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=mech_eap.git;a=commitdiff_plain;h=5cdd729e26e21f75522b210fa54a1820fb7d5c93 P2P: Fix compilation warning in p2p_supplicant.c On some architectures unsigned int differs from size_t, and some compilers warn about it. Signed-off-by: Max Stepanov --- diff --git a/wpa_supplicant/p2p_supplicant.c b/wpa_supplicant/p2p_supplicant.c index b89d43e..b1fdc28 100644 --- a/wpa_supplicant/p2p_supplicant.c +++ b/wpa_supplicant/p2p_supplicant.c @@ -3369,7 +3369,7 @@ static int wpas_p2p_get_center_80mhz(struct wpa_supplicant *wpa_s, u8 channel) { u8 center_channels[] = { 42, 58, 106, 122, 138, 155 }; - unsigned int i; + size_t i; if (mode->mode != HOSTAPD_MODE_IEEE80211A) return 0;