summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2018-08-23 18:39:12 +0000
committernicm <nicm@openbsd.org>2018-08-23 18:39:12 +0000
commit65b02dc615365d1039792b794002f7f3845b887c (patch)
tree51a5a856abd3355cf04ca7ac7d2079add5d53e57
parentA sequence of increasingly restrictive pledges was already present (diff)
downloadwireguard-openbsd-65b02dc615365d1039792b794002f7f3845b887c.tar.xz
wireguard-openbsd-65b02dc615365d1039792b794002f7f3845b887c.zip
all_jobs can be static.
-rw-r--r--usr.bin/tmux/job.c5
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 *