From 311272660d77beac761f036192df2573c4c01bf6 Mon Sep 17 00:00:00 2001 From: Andre Heider Date: Wed, 23 Nov 2022 14:38:37 +0100 Subject: 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 --- iwinfo_nl80211.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'iwinfo_nl80211.c') 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; } -- cgit v1.2.1