mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	all_jobs can be static.
This commit is contained in:
		
							
								
								
									
										3
									
								
								job.c
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								job.c
									
									
									
									
									
								
							@@ -37,6 +37,7 @@ static void	job_read_callback(struct bufferevent *, void *);
 | 
			
		||||
static void	job_write_callback(struct bufferevent *, void *);
 | 
			
		||||
static void	job_error_callback(struct bufferevent *, short, void *);
 | 
			
		||||
 | 
			
		||||
/* A single job. */
 | 
			
		||||
struct job {
 | 
			
		||||
	enum {
 | 
			
		||||
		JOB_RUNNING,
 | 
			
		||||
@@ -62,7 +63,7 @@ struct job {
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
/* All jobs list. */
 | 
			
		||||
LIST_HEAD(joblist, job) all_jobs = LIST_HEAD_INITIALIZER(all_jobs);
 | 
			
		||||
static LIST_HEAD(joblist, job) all_jobs = LIST_HEAD_INITIALIZER(all_jobs);
 | 
			
		||||
 | 
			
		||||
/* Start a job running, if it isn't already. */
 | 
			
		||||
struct job *
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user