From: Vincent Bernat Date: Mon, 6 May 2013 19:37:26 +0000 (+0200) Subject: lldpcli: fix two warnings introduced by the previous commit X-Git-Tag: 0.7.3~14 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=048ed9db7ddf1b547efbec0fbe8bba8c12674a7c;p=thirdparty%2Flldpd.git lldpcli: fix two warnings introduced by the previous commit --- diff --git a/src/client/display.c b/src/client/display.c index 3dc0261f..805fc01c 100644 --- a/src/client/display.c +++ b/src/client/display.c @@ -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; diff --git a/src/client/show.c b/src/client/show.c index 21b48c20..fda4e4ec 100644 --- a/src/client/show.c +++ b/src/client/show.c @@ -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);