commit | 2dd9f8e073717aed2b624d1e9e325487260b57eb | [log] [tgz] |
---|---|---|
author | Stephen Hemminger <shemminger@vyatta.com> | Mon Jun 20 14:34:46 2011 -0700 |
committer | Stephen Hemminger <shemminger@vyatta.com> | Mon Jun 20 14:34:46 2011 -0700 |
tree | 298171deacc488c47a3e41fbe814c292667a6b1b | |
parent | bf808cbf84bd96974b5a7d11484e8b0d46a467e8 [diff] |
libnetlink: fix set never used warning
diff --git a/lib/libnetlink.c b/lib/libnetlink.c index ee4f045..0fc2cde 100644 --- a/lib/libnetlink.c +++ b/lib/libnetlink.c
@@ -493,7 +493,7 @@ nladdr.nl_groups = 0; while (1) { - int err, len, type; + int err, len; int l; status = fread(&buf, 1, sizeof(*h), rtnl); @@ -508,7 +508,6 @@ return 0; len = h->nlmsg_len; - type= h->nlmsg_type; l = len - sizeof(*h); if (l<0 || len>sizeof(buf)) {