]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
lldpcli: fix two warnings introduced by the previous commit
authorVincent Bernat <bernat@luffy.cx>
Mon, 6 May 2013 19:37:26 +0000 (21:37 +0200)
committerVincent Bernat <bernat@luffy.cx>
Mon, 6 May 2013 19:37:26 +0000 (21:37 +0200)
src/client/display.c
src/client/show.c

index 3dc0261f81aea391f8fc05daacb8ec1fa5a5ae9f..805fc01cfa6b4087818d6a74600539b635ca99d2 100644 (file)
@@ -637,7 +637,6 @@ display_interfaces_stats(lldpctl_conn_t *conn, struct writer *w,
        u_int64_t h_ageout_cnt = 0;
        u_int64_t h_insert_cnt = 0;
        u_int64_t h_delete_cnt = 0;
-       char buf[20];
 
        if (cmdenv_get(env, "summary"))
                summary = 1;
index 21b48c2069802ee8dc3b56007101ff7f82ce3c8e..fda4e4eceac7b186801eb576686f524deb9b1e50 100644 (file)
@@ -62,8 +62,7 @@ cmd_show_interface_stats(struct lldpctl_conn_t *conn, struct writer *w,
                log_debug("lldpctl", "restrict to the following ports: %s",
                    cmdenv_get(env, "ports"));
        if (cmdenv_get(env, "summary"))
-               log_debug("lldpctl", "show summary of stats accross ports ",
-                   cmdenv_get(env, "summary"));
+               log_debug("lldpctl", "show summary of stats accross ports");
 
        display_interfaces_stats(conn, w, env);