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-dump3.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-dump3.c')
-rw-r--r-- | examples/rtnl-link-dump3.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 <stdio.h> #include <stdlib.h> #include <unistd.h> +#include <time.h> #include <libmnl/libmnl.h> #include <linux/if.h> @@ -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 ", |