aboutsummaryrefslogtreecommitdiff
path: root/tmux.c
diff options
context:
space:
mode:
authornicm <nicm>2016-10-11 13:21:59 +0000
committernicm <nicm>2016-10-11 13:21:59 +0000
commite45401846f0a423bb90ebd3943041a28b2657631 (patch)
tree9d5d914a2e67829e5729f775e6f95fb460c36cbc /tmux.c
parent85d7afaefc1e2cf8008575a776ec70f51d24e1a6 (diff)
downloadrtmux-e45401846f0a423bb90ebd3943041a28b2657631.tar.gz
rtmux-e45401846f0a423bb90ebd3943041a28b2657631.tar.bz2
rtmux-e45401846f0a423bb90ebd3943041a28b2657631.zip
Add static in window-*.c and move some internal functions out of tmux.h.
Diffstat (limited to 'tmux.c')
-rw-r--r--tmux.c7
1 files changed, 5 insertions, 2 deletions
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 != '/')