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. --- tmux.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tmux.c') diff --git a/tmux.c b/tmux.c index abe2c672..413fea3a 100644 --- a/tmux.c +++ b/tmux.c @@ -44,10 +44,10 @@ struct hooks *global_hooks; struct timeval start_time; const char *socket_path; -__dead void usage(void); -static char *make_label(const char *); +static __dead void usage(void); +static char *make_label(const char *); -__dead void +static __dead void usage(void) { fprintf(stderr, -- cgit From e45401846f0a423bb90ebd3943041a28b2657631 Mon Sep 17 00:00:00 2001 From: nicm Date: Tue, 11 Oct 2016 13:21:59 +0000 Subject: Add static in window-*.c and move some internal functions out of tmux.h. --- tmux.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'tmux.c') diff --git a/tmux.c b/tmux.c index 413fea3a..dbd91e2b 100644 --- a/tmux.c +++ b/tmux.c @@ -47,6 +47,9 @@ const char *socket_path; static __dead void usage(void); static char *make_label(const char *); +static const char *getshell(void); +static int checkshell(const char *); + static __dead void usage(void) { @@ -57,7 +60,7 @@ usage(void) exit(1); } -const char * +static const char * getshell(void) { struct passwd *pw; @@ -74,7 +77,7 @@ getshell(void) return (_PATH_BSHELL); } -int +static int checkshell(const char *shell) { if (shell == NULL || *shell == '\0' || *shell != '/') -- cgit