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-dump3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/rtnl-link-dump3.c') diff --git a/examples/rtnl-link-dump3.c b/examples/rtnl-link-dump3.c index fc887ff..4dc20af 100644 --- a/examples/rtnl-link-dump3.c +++ b/examples/rtnl-link-dump3.c @@ -1,6 +1,7 @@ #include #include #include +#include #include #include @@ -10,7 +11,6 @@ static int data_cb(const struct nlmsghdr *nlh, void *data) { 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 ", -- cgit v1.2.3