Remove variable set and never used
authorStephen Hemminger <shemminger@vyatta.com>
Mon, 4 Jul 2011 21:13:53 +0000 (14:13 -0700)
committerStephen Hemminger <shemminger@vyatta.com>
Mon, 4 Jul 2011 21:13:53 +0000 (14:13 -0700)
libnetlink.c

index 7752236..62e47a9 100644 (file)
@@ -449,7 +449,7 @@ int rtnl_from_file(FILE * rtnl, rtnl_filter_t handler, void *jarg)
        nladdr.nl_groups = 0;
 
        while (1) {
-               int err, len, type;
+               int err, len;
                int l;
 
                status = fread(&buf, 1, sizeof(*h), rtnl);
@@ -464,7 +464,6 @@ int rtnl_from_file(FILE * rtnl, rtnl_filter_t handler, void *jarg)
                        return 0;
 
                len = h->nlmsg_len;
-               type = h->nlmsg_type;
                l = len - sizeof(*h);
 
                if (l < 0 || len > sizeof(buf)) {