summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/tmux.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2016-10-11 13:21:59 +0000
committernicm <nicm@openbsd.org>2016-10-11 13:21:59 +0000
commitced217699ffe77cdcd68550d0cd5144e02885fbd (patch)
tree4e8db157c9069258d6ed1270a2ee874d6502ef41 /usr.bin/tmux/tmux.c
parentmissing .Fl macro, from Jan Stary (diff)
downloadwireguard-openbsd-ced217699ffe77cdcd68550d0cd5144e02885fbd.tar.xz
wireguard-openbsd-ced217699ffe77cdcd68550d0cd5144e02885fbd.zip
Add static in window-*.c and move some internal functions out of tmux.h.
Diffstat (limited to 'usr.bin/tmux/tmux.c')
-rw-r--r--usr.bin/tmux/tmux.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/usr.bin/tmux/tmux.c b/usr.bin/tmux/tmux.c
index 107a961aebd..53dee059c31 100644
--- a/usr.bin/tmux/tmux.c
+++ b/usr.bin/tmux/tmux.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tmux.c,v 1.171 2016/10/10 21:29:23 nicm Exp $ */
+/* $OpenBSD: tmux.c,v 1.172 2016/10/11 13:21:59 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -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 != '/')