From a4ae4201a45858516cfb3e63ffd12c2d12acbb70 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Thu, 22 Apr 2010 13:59:45 +0200 Subject: fix lots of compilation warnings in example files They have been spotted by -Wall -Wextra Signed-off-by: Pablo Neira Ayuso --- examples/rtnl-link-dump.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'examples/rtnl-link-dump.c') diff --git a/examples/rtnl-link-dump.c b/examples/rtnl-link-dump.c index 2b9f472..e3cba05 100644 --- a/examples/rtnl-link-dump.c +++ b/examples/rtnl-link-dump.c @@ -1,6 +1,7 @@ #include #include #include +#include #include #include @@ -39,8 +40,6 @@ static int data_cb(const struct nlmsghdr *nlh, void *data) { struct nlattr *tb[IFLA_MAX+1] = {}; struct ifinfomsg *ifm = mnl_nlmsg_get_payload(nlh); - int len = nlh->nlmsg_len; - struct nlattr *attr; printf("index=%d type=%d flags=%d family=%d ", ifm->ifi_index, ifm->ifi_type, -- cgit v1.2.3