From 3eaa4aaaf698779f4a644c197dbeb872c58d6dd5 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Sat, 13 Jul 2013 16:09:13 +0200 Subject: ifpps: Remove unused parameter to term_csv() term_csv() doesn't use the ifname and ms_interval parameters, they're only used in term_csv_header(). Thus remove them from term_csv(). This fixes a warning when compiling with -W/-Wunused-parameter. Signed-off-by: Tobias Klauser --- ifpps.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ifpps.c b/ifpps.c index 69e0f24..9344625 100644 --- a/ifpps.c +++ b/ifpps.c @@ -1126,8 +1126,7 @@ static int screen_main(const char *ifname, uint64_t ms_interval, return 0; } -static void term_csv(const char *ifname, const struct ifstat *rel, - const struct ifstat *abs, uint64_t ms_interval) +static void term_csv(const struct ifstat *rel, const struct ifstat *abs) { int cpus, i; @@ -1283,7 +1282,7 @@ static int term_main(const char *ifname, uint64_t ms_interval, term_csv_header(ifname, &stats_new, ms_interval); } - term_csv(ifname, &stats_delta, &stats_new, ms_interval); + term_csv(&stats_delta, &stats_new); } while (stats_loop && !sigint); return 0; -- cgit v1.2.3-54-g00ecf