libnetlink: fix set never used warning
This commit is contained in:
parent
bf808cbf84
commit
2dd9f8e073
|
|
@ -493,7 +493,7 @@ int rtnl_from_file(FILE *rtnl, rtnl_filter_t handler,
|
||||||
nladdr.nl_groups = 0;
|
nladdr.nl_groups = 0;
|
||||||
|
|
||||||
while (1) {
|
while (1) {
|
||||||
int err, len, type;
|
int err, len;
|
||||||
int l;
|
int l;
|
||||||
|
|
||||||
status = fread(&buf, 1, sizeof(*h), rtnl);
|
status = fread(&buf, 1, sizeof(*h), rtnl);
|
||||||
|
|
@ -508,7 +508,6 @@ int rtnl_from_file(FILE *rtnl, rtnl_filter_t handler,
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
len = h->nlmsg_len;
|
len = h->nlmsg_len;
|
||||||
type= h->nlmsg_type;
|
|
||||||
l = len - sizeof(*h);
|
l = len - sizeof(*h);
|
||||||
|
|
||||||
if (l<0 || len>sizeof(buf)) {
|
if (l<0 || len>sizeof(buf)) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue