diff options
author | Steven Barth <steven@midlink.org> | 2015-04-14 08:45:26 +0200 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2015-04-14 08:45:26 +0200 |
commit | 8b468ec5022834d04b6be1cf45b4fe4f092c692e (patch) | |
tree | 3f3f137fc8959b54297a8b7b2a87d56990ee73af /system-linux.c | |
parent | 92d2aea918f650f309f753349457028032d53280 (diff) |
Cleanup issues reported by scan-build
Signed-off-by: Steven Barth <steven@midlink.org>
Diffstat (limited to 'system-linux.c')
-rw-r--r-- | system-linux.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/system-linux.c b/system-linux.c index 2b52cea..a6734a4 100644 --- a/system-linux.c +++ b/system-linux.c @@ -374,7 +374,6 @@ static int system_get_neigh6reachabletime(struct device *dev, char *buf, const s static int cb_rtnl_event(struct nl_msg *msg, void *arg) { struct nlmsghdr *nh = nlmsg_hdr(msg); - struct ifinfomsg *ifi = NLMSG_DATA(nh); struct nlattr *nla[__IFLA_MAX]; int link_state = 0; char buf[10]; @@ -382,7 +381,7 @@ static int cb_rtnl_event(struct nl_msg *msg, void *arg) if (nh->nlmsg_type != RTM_NEWLINK) goto out; - nlmsg_parse(nh, sizeof(*ifi), nla, __IFLA_MAX - 1, NULL); + nlmsg_parse(nh, sizeof(struct ifinfomsg), nla, __IFLA_MAX - 1, NULL); if (!nla[IFLA_IFNAME]) goto out; |