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:
parent
ebd5f84955
commit
311272660d
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue