summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2016-04-26 12:12:07 +0200
committerTobias Klauser <tklauser@distanz.ch>2016-04-26 12:12:07 +0200
commitdc504fa7f8ff8672f47ad339b4d2f73d594b293a (patch)
tree98aeb15a02c8daac43506af6c436fa397a91ed15
parent25dcebb5ef63bc431a2af93126ef43ba374e1477 (diff)
flowtop: Remove unused parameters from draw_help() and draw_footer()
The WINDOW *screen parameter to draw_help() and draw_footer() is unused, so remove it. Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
-rw-r--r--flowtop.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/flowtop.c b/flowtop.c
index b30b0bb..848fd6a 100644
--- a/flowtop.c
+++ b/flowtop.c
@@ -1151,7 +1151,7 @@ static void draw_flows(WINDOW *screen, struct flow_list *fl,
rcu_read_unlock();
}
-static void draw_help(WINDOW *screen)
+static void draw_help(void)
{
int col = 0;
int row = 1;
@@ -1212,7 +1212,7 @@ static void draw_header(WINDOW *screen)
attroff(A_STANDOUT);
}
-static void draw_footer(WINDOW *screen)
+static void draw_footer(void)
{
int i;
@@ -1356,11 +1356,11 @@ static void presenter(void)
draw_header(screen);
if (show_help)
- draw_help(screen);
+ draw_help();
else
draw_flows(screen, &flow_list, skip_lines);
- draw_footer(screen);
+ draw_footer();
usleep(80000);
}