From: Hamish Coleman Date: Fri, 17 Feb 2017 05:01:39 +0000 (+0800) Subject: Remove unused variable X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c19bb6cbb0e9e4946b1bffdd1fec7e6250bc43e5;p=liboping.git Remove unused variable --- diff --git a/src/oping.c b/src/oping.c index 0cfe646..e439dbf 100644 --- a/src/oping.c +++ b/src/oping.c @@ -999,7 +999,7 @@ static int update_graph_boxplot (ping_context_t *ctx) /* {{{ */ } /* }}} int update_graph_boxplot */ static int update_graph_prettyping (ping_context_t *ctx, /* {{{ */ - double latency, unsigned int sequence) + double latency) { size_t x; size_t x_max; @@ -1217,12 +1217,6 @@ static int update_stats_from_context (ping_context_t *ctx, pingobj_iter_t *iter) ping_iterator_get_info (iter, PING_INFO_LATENCY, &latency, &buffer_len); - unsigned int sequence = 0; - buffer_len = sizeof (sequence); - ping_iterator_get_info (iter, PING_INFO_SEQUENCE, - &sequence, &buffer_len); - - if ((ctx == NULL) || (ctx->window == NULL)) return (EINVAL); @@ -1258,7 +1252,7 @@ static int update_stats_from_context (ping_context_t *ctx, pingobj_iter_t *iter) } if (opt_show_graph == 1) - update_graph_prettyping (ctx, latency, sequence); + update_graph_prettyping (ctx, latency); else if (opt_show_graph == 2) update_graph_histogram (ctx); else if (opt_show_graph == 3)