From 21993105e53da0f5aae583b494c83f1cbbf48b1b Mon Sep 17 00:00:00 2001 From: nicm Date: Thu, 20 Apr 2017 09:43:45 +0000 Subject: Now that struct winlink has a session pointer, can remove some arguments. --- window.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'window.c') diff --git a/window.c b/window.c index b0be6220..5af2c273 100644 --- a/window.c +++ b/window.c @@ -709,12 +709,12 @@ window_destroy_panes(struct window *w) } } -/* Retuns the printable flags on a window, empty string if no flags set. */ const char * -window_printable_flags(struct session *s, struct winlink *wl) +window_printable_flags(struct winlink *wl) { - static char flags[32]; - int pos; + struct session *s = wl->session; + static char flags[32]; + int pos; pos = 0; if (wl->flags & WINLINK_ACTIVITY) -- cgit