From c426e485e527a03aa3b4bdbb3203f621e006cbd5 Mon Sep 17 00:00:00 2001 From: nicm Date: Mon, 10 Oct 2016 21:29:23 +0000 Subject: Loads more static, except for cmd-*.c and window-*.c. --- cfg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cfg.c') diff --git a/cfg.c b/cfg.c index ccc93df1..0a931a81 100644 --- a/cfg.c +++ b/cfg.c @@ -36,7 +36,7 @@ char **cfg_causes; u_int cfg_ncauses; struct client *cfg_client; -void cfg_default_done(struct cmd_q *); +static void cfg_default_done(struct cmd_q *); void set_cfg_file(const char *path) @@ -126,7 +126,7 @@ load_cfg(const char *path, struct cmd_q *cmdq, int quiet) return (found); } -void +static void cfg_default_done(__unused struct cmd_q *cmdq) { if (--cfg_references != 0) -- cgit From 5c49e1d0c1afaf98512b2ffd1f31d91fecff9851 Mon Sep 17 00:00:00 2001 From: nicm Date: Tue, 11 Oct 2016 13:45:47 +0000 Subject: Some other stuff that can be local to one file. --- cfg.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'cfg.c') diff --git a/cfg.c b/cfg.c index 0a931a81..d45573ea 100644 --- a/cfg.c +++ b/cfg.c @@ -28,13 +28,13 @@ #include "tmux.h" -char *cfg_file; -struct cmd_q *cfg_cmd_q; -int cfg_finished; -int cfg_references; -char **cfg_causes; -u_int cfg_ncauses; -struct client *cfg_client; +char *cfg_file; +static struct cmd_q *cfg_cmd_q; +int cfg_finished; +int cfg_references; +static char **cfg_causes; +static u_int cfg_ncauses; +struct client *cfg_client; static void cfg_default_done(struct cmd_q *); -- cgit