hostapd: fix a compiler warning in ap+station patch
[openwrt/svn-archive/archive.git] / package / network / services / hostapd / patches / 370-ap_sta_support.patch
index 6b0fbe6e57f477cdb3c29f7879cbe76a8caa4bbe..92a5fddad74898b6021f365af149aa2cac255a69 100644 (file)
@@ -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;