From 0f25ad3ca32d329500ac830f3c13e60ead4cb3db Mon Sep 17 00:00:00 2001 From: nicm Date: Thu, 20 Apr 2017 09:39:07 +0000 Subject: There is no real need for window_printable_flags to allocate, make it return a buffer from the stack. --- tmux.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tmux.h') diff --git a/tmux.h b/tmux.h index adad2edc..b8a40df0 100644 --- a/tmux.h +++ b/tmux.h @@ -2120,7 +2120,7 @@ int window_pane_outside(struct window_pane *); int window_pane_visible(struct window_pane *); char *window_pane_search(struct window_pane *, const char *, u_int *); -char *window_printable_flags(struct session *, struct winlink *); +const char *window_printable_flags(struct session *, struct winlink *); struct window_pane *window_pane_find_up(struct window_pane *); struct window_pane *window_pane_find_down(struct window_pane *); struct window_pane *window_pane_find_left(struct window_pane *); -- cgit