From 68e370574af6fc8f453a0bf9577adcfdfad9ab62 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Wed, 13 Feb 2013 10:25:37 +0000 Subject: [PATCH] Fix constness of window_choose_add_item and _window. --- tmux.h | 4 ++-- window-choose.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tmux.h b/tmux.h index 2b4a68b6..69723d5e 100644 --- a/tmux.h +++ b/tmux.h @@ -2204,13 +2204,13 @@ void window_choose_data_free(struct window_choose_data *); void window_choose_data_run(struct window_choose_data *); struct window_choose_data *window_choose_add_window(struct window_pane *, struct client *, struct session *, struct winlink *, - const char *, char *, u_int); + const char *, const char *, u_int); struct window_choose_data *window_choose_add_session(struct window_pane *, struct client *, struct session *, const char *, const char *, u_int); struct window_choose_data *window_choose_add_item(struct window_pane *, struct client *, struct winlink *, const char *, - char *, u_int); + const char *, u_int); void window_choose_expand_all(struct window_pane *); /* names.c */ diff --git a/window-choose.c b/window-choose.c index 0d386fd8..5b11f4b6 100644 --- a/window-choose.c +++ b/window-choose.c @@ -887,7 +887,7 @@ window_choose_add_session(struct window_pane *wp, struct client *c, struct window_choose_data * window_choose_add_item(struct window_pane *wp, struct client *c, - struct winlink *wl, const char *template, char *action, u_int idx) + struct winlink *wl, const char *template, const char *action, u_int idx) { struct window_choose_data *wcd; char *expanded; @@ -918,7 +918,7 @@ window_choose_add_item(struct window_pane *wp, struct client *c, struct window_choose_data * window_choose_add_window(struct window_pane *wp, struct client *c, struct session *s, struct winlink *wl, const char *template, - char *action, u_int idx) + const char *action, u_int idx) { struct window_choose_data *wcd; char *expanded;