From: Andre Heider Date: Wed, 23 Nov 2022 13:38:37 +0000 (+0100) Subject: fix -Wpointer-sign warning X-Git-Url: http://git.openwrt.org/openwrt/svn-archive.git?a=commitdiff_plain;h=311272660d77beac761f036192df2573c4c01bf6;p=project%2Fiwinfo.git fix -Wpointer-sign warning sb.ssid is buf casted to unsigned char, just use that instead of casting it back. Signed-off-by: Andre Heider --- diff --git a/iwinfo_nl80211.c b/iwinfo_nl80211.c index 0e339b5..c17aaa2 100644 --- a/iwinfo_nl80211.c +++ b/iwinfo_nl80211.c @@ -1234,7 +1234,7 @@ static int nl80211_get_ssid(const char *ifname, char *buf) /* failed, try to obtain Mesh ID */ if (sb.ssid[0] == 0) iwinfo_ubus_query(res ? res : ifname, "mesh_id", - sb.ssid, IWINFO_ESSID_MAX_SIZE + 1); + buf, IWINFO_ESSID_MAX_SIZE + 1); return (sb.ssid[0] == 0) ? -1 : 0; }