diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2010-04-22 13:59:45 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2010-04-22 13:59:45 +0200 |
commit | a4ae4201a45858516cfb3e63ffd12c2d12acbb70 (patch) | |
tree | 22a4c98666bb0d4cb0d781475aab1fd905713009 /examples/rtnl-link-dump.c | |
parent | c0d2aec13192ece4211894554348cdf9ddcb5837 (diff) |
fix lots of compilation warnings in example files
They have been spotted by -Wall -Wextra
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'examples/rtnl-link-dump.c')
-rw-r--r-- | examples/rtnl-link-dump.c | 3 |
1 files changed, 1 insertions, 2 deletions
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 <stdio.h> #include <stdlib.h> #include <unistd.h> +#include <time.h> #include <libmnl/libmnl.h> #include <linux/if.h> @@ -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, |