projects
/
project
/
iwinfo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ebd5f84
)
fix -Wpointer-sign warning
author
Andre Heider
<a.heider@gmail.com>
Wed, 23 Nov 2022 13:38:37 +0000
(14:38 +0100)
committer
Jo-Philipp Wich
<jo@mein.io>
Thu, 15 Dec 2022 19:07:49 +0000
(20:07 +0100)
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>
iwinfo_nl80211.c
patch
|
blob
|
history
diff --git
a/iwinfo_nl80211.c
b/iwinfo_nl80211.c
index 0e339b5203b36809b02e898cec64dfd528aae30c..c17aaa2f9f70f4fb8364624c6534eed2ff5bfcde 100644
(file)
--- 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;
}