diff options
author | Thomas Graf <tgraf@suug.ch> | 2014-08-25 23:09:12 (GMT) |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2014-08-26 11:09:20 (GMT) |
commit | 340d5d69c41bd35ee8b84d40b30f511bd24d5aab (patch) | |
tree | cd17992c2995467790135f2391af4cc61b1e76c1 /src/nl-route-get.c | |
parent | c231aa4159b837b18c1b5ca8fb4bf17b8d467003 (diff) | |
download | libnl-340d5d69c41bd35ee8b84d40b30f511bd24d5aab.zip libnl-340d5d69c41bd35ee8b84d40b30f511bd24d5aab.tar.gz libnl-340d5d69c41bd35ee8b84d40b30f511bd24d5aab.tar.bz2 |
src: Silence all warnings
Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: Thomas Haller <thaller@redhat.com>
Diffstat (limited to 'src/nl-route-get.c')
-rw-r--r-- | src/nl-route-get.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/nl-route-get.c b/src/nl-route-get.c index 9d9a448..1ee47e4 100644 --- a/src/nl-route-get.c +++ b/src/nl-route-get.c @@ -43,7 +43,6 @@ static int cb(struct nl_msg *msg, void *arg) int main(int argc, char *argv[]) { struct nl_sock *sock; - struct nl_cache *link_cache, *route_cache; struct nl_addr *dst; int err = 1; @@ -52,8 +51,8 @@ int main(int argc, char *argv[]) sock = nl_cli_alloc_socket(); nl_cli_connect(sock, NETLINK_ROUTE); - link_cache = nl_cli_link_alloc_cache(sock); - route_cache = nl_cli_route_alloc_cache(sock, 0); + nl_cli_link_alloc_cache(sock); + nl_cli_route_alloc_cache(sock, 0); dst = nl_cli_addr_parse(argv[1], AF_INET); @@ -83,7 +82,5 @@ int main(int argc, char *argv[]) nl_cli_fatal(err, "%s", nl_geterror(err)); } - //nl_cache_dump(route_cache, ¶ms); - return 0; } |