mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-03 16:46:18 +00:00 
			
		
		
		
	Tidy up some includes.
This commit is contained in:
		
							
								
								
									
										6
									
								
								screen.c
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								screen.c
									
									
									
									
									
								
							@@ -31,12 +31,12 @@ void	screen_resize_y(struct screen *, u_int);
 | 
			
		||||
void
 | 
			
		||||
screen_init(struct screen *s, u_int sx, u_int sy, u_int hlimit)
 | 
			
		||||
{
 | 
			
		||||
	char hn[MAXHOSTNAMELEN];
 | 
			
		||||
	char host[HOST_NAME_MAX];
 | 
			
		||||
 | 
			
		||||
	s->grid = grid_create(sx, sy, hlimit);
 | 
			
		||||
 | 
			
		||||
	if (gethostname(hn, MAXHOSTNAMELEN) == 0)
 | 
			
		||||
		s->title = xstrdup(hn);
 | 
			
		||||
	if (gethostname(host, HOST_NAME_MAX) == 0)
 | 
			
		||||
		s->title = xstrdup(host);
 | 
			
		||||
	else
 | 
			
		||||
		s->title = xstrdup("");
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user