summaryrefslogtreecommitdiffstats
path: root/libnetlink.c
diff options
context:
space:
mode:
Diffstat (limited to 'libnetlink.c')
-rw-r--r--libnetlink.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libnetlink.c b/libnetlink.c
index 7752236..62e47a9 100644
--- a/libnetlink.c
+++ b/libnetlink.c
@@ -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)) {