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 <a.heider@gmail.com>
This commit is contained in:
Andre Heider 2022-11-23 14:38:37 +01:00 committed by Jo-Philipp Wich
parent ebd5f84955
commit 311272660d

View file

@ -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;
}