mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	setupterm needs char * not const char * on some platforms.
This commit is contained in:
		@@ -661,7 +661,7 @@ tty_term_read_list(const char *name, int fd, char ***caps, u_int *ncaps,
 | 
				
			|||||||
	const char				*s;
 | 
						const char				*s;
 | 
				
			||||||
	char					 tmp[11];
 | 
						char					 tmp[11];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (setupterm(name, fd, &error) != OK) {
 | 
						if (setupterm((char *)name, fd, &error) != OK) {
 | 
				
			||||||
		switch (error) {
 | 
							switch (error) {
 | 
				
			||||||
		case 1:
 | 
							case 1:
 | 
				
			||||||
			xasprintf(cause, "can't use hardcopy terminal: %s",
 | 
								xasprintf(cause, "can't use hardcopy terminal: %s",
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user