]> git.sur5r.net Git - i3/i3status/commitdiff
use nlmsg_data instead of the too-new genlmsg_hdr
authorMichael Stapelberg <michael@stapelberg.de>
Fri, 25 Sep 2015 08:49:01 +0000 (10:49 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Fri, 25 Sep 2015 08:49:01 +0000 (10:49 +0200)
src/print_wireless_info.c

index 3410ba93efb8f9a770e69bbbd8bef77c867a634f..a629db43f8df5cdf219528da32ec0fefd03297cc 100644 (file)
@@ -174,7 +174,7 @@ static int gwi_sta_cb(struct nl_msg *msg, void *data) {
 
 static int gwi_scan_cb(struct nl_msg *msg, void *data) {
     wireless_info_t *info = data;
-    struct genlmsghdr *gnlh = genlmsg_hdr(nlmsg_hdr(msg));
+    struct genlmsghdr *gnlh = nlmsg_data(nlmsg_hdr(msg));
     struct nlattr *tb[NL80211_ATTR_MAX + 1];
     struct nlattr *bss[NL80211_BSS_MAX + 1];
     struct nla_policy bss_policy[NL80211_BSS_MAX + 1] = {