From: Michael Stapelberg Date: Fri, 25 Sep 2015 08:49:01 +0000 (+0200) Subject: use nlmsg_data instead of the too-new genlmsg_hdr X-Git-Tag: 2.10~14 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=45ccd84309b2f276fe58f374dcb5c20d8363e64d;p=i3%2Fi3status use nlmsg_data instead of the too-new genlmsg_hdr --- diff --git a/src/print_wireless_info.c b/src/print_wireless_info.c index 3410ba9..a629db4 100644 --- a/src/print_wireless_info.c +++ b/src/print_wireless_info.c @@ -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] = {