mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Fix constness of window_choose_add_item and _window.
This commit is contained in:
		
							
								
								
									
										4
									
								
								tmux.h
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								tmux.h
									
									
									
									
									
								
							@@ -2204,13 +2204,13 @@ void	window_choose_data_free(struct window_choose_data *);
 | 
				
			|||||||
void	window_choose_data_run(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 window_choose_data	*window_choose_add_window(struct window_pane *,
 | 
				
			||||||
			struct client *, struct session *, struct winlink *,
 | 
								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 window_choose_data	*window_choose_add_session(struct window_pane *,
 | 
				
			||||||
			struct client *, struct session *, const char *,
 | 
								struct client *, struct session *, const char *,
 | 
				
			||||||
			const char *, u_int);
 | 
								const char *, u_int);
 | 
				
			||||||
struct window_choose_data	*window_choose_add_item(struct window_pane *,
 | 
					struct window_choose_data	*window_choose_add_item(struct window_pane *,
 | 
				
			||||||
			struct client *, struct winlink *, const char *,
 | 
								struct client *, struct winlink *, const char *,
 | 
				
			||||||
			char *, u_int);
 | 
								const char *, u_int);
 | 
				
			||||||
void	window_choose_expand_all(struct window_pane *);
 | 
					void	window_choose_expand_all(struct window_pane *);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/* names.c */
 | 
					/* names.c */
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -887,7 +887,7 @@ window_choose_add_session(struct window_pane *wp, struct client *c,
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
struct window_choose_data *
 | 
					struct window_choose_data *
 | 
				
			||||||
window_choose_add_item(struct window_pane *wp, struct client *c,
 | 
					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;
 | 
						struct window_choose_data	*wcd;
 | 
				
			||||||
	char				*expanded;
 | 
						char				*expanded;
 | 
				
			||||||
@@ -918,7 +918,7 @@ window_choose_add_item(struct window_pane *wp, struct client *c,
 | 
				
			|||||||
struct window_choose_data *
 | 
					struct window_choose_data *
 | 
				
			||||||
window_choose_add_window(struct window_pane *wp, struct client *c,
 | 
					window_choose_add_window(struct window_pane *wp, struct client *c,
 | 
				
			||||||
    struct session *s, struct winlink *wl, const char *template,
 | 
					    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;
 | 
						struct window_choose_data	*wcd;
 | 
				
			||||||
	char				*expanded;
 | 
						char				*expanded;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user