Author: nbd
Date: 2015-03-27 15:54:53 +0100 (Fri, 27 Mar 2015)
New Revision: 45062

Modified:
   trunk/package/network/services/hostapd/patches/370-ap_sta_support.patch
Log:
hostapd: fix a compiler warning in ap+station patch

Signed-off-by: Felix Fietkau <[email protected]>

Modified: 
trunk/package/network/services/hostapd/patches/370-ap_sta_support.patch
===================================================================
--- trunk/package/network/services/hostapd/patches/370-ap_sta_support.patch     
2015-03-27 14:54:46 UTC (rev 45061)
+++ trunk/package/network/services/hostapd/patches/370-ap_sta_support.patch     
2015-03-27 14:54:53 UTC (rev 45062)
@@ -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;
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to