summaryrefslogtreecommitdiff
path: root/ifpps.c
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2013-07-13 16:09:13 +0200
committerTobias Klauser <tklauser@distanz.ch>2013-07-13 16:13:47 +0200
commit3eaa4aaaf698779f4a644c197dbeb872c58d6dd5 (patch)
treec272b5ff74bc22c17d2097934ed2115fd71280cf /ifpps.c
parentbc1a4990f32c00d53a76aa0742358e094b564a8a (diff)
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 <tklauser@distanz.ch>
Diffstat (limited to 'ifpps.c')
-rw-r--r--ifpps.c5
1 files 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;