summaryrefslogtreecommitdiffstats
path: root/window.c
diff options
context:
space:
mode:
authornicm <nicm>2017-04-20 09:43:45 +0000
committernicm <nicm>2017-04-20 09:43:45 +0000
commit21993105e53da0f5aae583b494c83f1cbbf48b1b (patch)
tree2698fe886647933d148dcdaaffbaae0ce5181d9b /window.c
parent0f25ad3ca32d329500ac830f3c13e60ead4cb3db (diff)
Now that struct winlink has a session pointer, can remove some arguments.
Diffstat (limited to 'window.c')
-rw-r--r--window.c8
1 files changed, 4 insertions, 4 deletions
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)