Fix constness of window_choose_add_item and _window.

This commit is contained in:
Nicholas Marriott 2013-02-13 10:25:37 +00:00
parent 544c80d715
commit 68e370574a
2 changed files with 4 additions and 4 deletions

4
tmux.h
View File

@ -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 */

View File

@ -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;