mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 09:26:05 +00:00 
			
		
		
		
	Style tweaks.
This commit is contained in:
		
							
								
								
									
										9
									
								
								server.c
									
									
									
									
									
								
							
							
						
						
									
										9
									
								
								server.c
									
									
									
									
									
								
							@@ -1,4 +1,4 @@
 | 
			
		||||
/* $Id: server.c,v 1.82 2008-09-26 06:45:27 nicm Exp $ */
 | 
			
		||||
/* $Id: server.c,v 1.83 2008-09-29 16:03:27 nicm Exp $ */
 | 
			
		||||
 | 
			
		||||
/*
 | 
			
		||||
 * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
 | 
			
		||||
@@ -380,7 +380,7 @@ void
 | 
			
		||||
server_check_timers(struct client *c)
 | 
			
		||||
{
 | 
			
		||||
	struct session	*s;
 | 
			
		||||
	struct timeval	 tv, tv2;
 | 
			
		||||
	struct timeval	 tv;
 | 
			
		||||
	u_int		 interval;
 | 
			
		||||
 | 
			
		||||
	if (c == NULL || c->session == NULL)
 | 
			
		||||
@@ -399,9 +399,8 @@ server_check_timers(struct client *c)
 | 
			
		||||
	if (interval == 0)
 | 
			
		||||
		return;
 | 
			
		||||
 | 
			
		||||
	memcpy(&tv2, &tv, sizeof tv2);
 | 
			
		||||
	tv2.tv_sec -= interval;
 | 
			
		||||
	if (timercmp(&c->status_timer, &tv2, <))
 | 
			
		||||
	tv.tv_sec -= interval;
 | 
			
		||||
	if (timercmp(&c->status_timer, &tv, <))
 | 
			
		||||
		c->flags |= CLIENT_STATUS;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										4
									
								
								tmux.c
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								tmux.c
									
									
									
									
									
								
							@@ -1,4 +1,4 @@
 | 
			
		||||
/* $Id: tmux.c,v 1.78 2008-09-26 06:45:28 nicm Exp $ */
 | 
			
		||||
/* $Id: tmux.c,v 1.79 2008-09-29 16:03:27 nicm Exp $ */
 | 
			
		||||
 | 
			
		||||
/*
 | 
			
		||||
 * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
 | 
			
		||||
@@ -287,7 +287,7 @@ main(int argc, char **argv)
 | 
			
		||||
 | 
			
		||||
	if (argc == 0) {
 | 
			
		||||
		cmd = xmalloc(sizeof *cmd);
 | 
			
		||||
		cmd->entry = &cmd_new_session_entry;
 | 
			
		||||
  		cmd->entry = &cmd_new_session_entry;
 | 
			
		||||
		cmd->entry->init(cmd, 0);
 | 
			
		||||
	} else if ((cmd = cmd_parse(argc, argv, &cause)) == NULL) {
 | 
			
		||||
		log_warnx("%s", cause);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user