From: Felix Fietkau Date: Fri, 27 Mar 2015 14:54:53 +0000 (+0000) Subject: hostapd: fix a compiler warning in ap+station patch X-Git-Tag: v19.07.0-rc1~14325 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=44218424f104454afc42da638be8709bd3bcdb9c;p=openwrt%2Fstaging%2Fhauke.git hostapd: fix a compiler warning in ap+station patch Signed-off-by: Felix Fietkau SVN-Revision: 45062 --- diff --git a/package/network/services/hostapd/patches/370-ap_sta_support.patch b/package/network/services/hostapd/patches/370-ap_sta_support.patch index 6b0fbe6e57..92a5fddad7 100644 --- a/package/network/services/hostapd/patches/370-ap_sta_support.patch +++ b/package/network/services/hostapd/patches/370-ap_sta_support.patch @@ -53,7 +53,7 @@ +{ + const char *cmd = "STOP_AP"; + char buf[256]; -+ int len = sizeof(buf); ++ size_t len = sizeof(buf); + + if (wpa_ctrl_request(wpa_s->hostapd, cmd, os_strlen(cmd), buf, &len, NULL) < 0) { + wpa_printf(MSG_ERROR, "\nFailed to stop hostapd AP interfaces\n"); @@ -66,7 +66,7 @@ +{ + char *cmd = NULL; + char buf[256]; -+ int len = sizeof(buf); ++ size_t len = sizeof(buf); + enum hostapd_hw_mode hw_mode; + u8 channel; + int sec_chan = 0;