diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2018-08-23 18:39:13 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2018-08-23 18:39:13 +0000 |
commit | 39ddc1f79500964f3b22a0fe323a568fcc87fc83 (patch) | |
tree | ed6ec9b19363a7b0e6fbd1d1f62cb9b0a520bed6 /usr.bin/tmux/job.c | |
parent | 3bc434060acaf6856f3313da30aabacbaf87b042 (diff) |
all_jobs can be static.
Diffstat (limited to 'usr.bin/tmux/job.c')
-rw-r--r-- | usr.bin/tmux/job.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/tmux/job.c b/usr.bin/tmux/job.c index 08ba7f1f0d4..62503e23770 100644 --- a/usr.bin/tmux/job.c +++ b/usr.bin/tmux/job.c @@ -1,4 +1,4 @@ -/* $OpenBSD: job.c,v 1.50 2018/08/23 15:45:05 nicm Exp $ */ +/* $OpenBSD: job.c,v 1.51 2018/08/23 18:39:12 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -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 * |