=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/tmux.c,v retrieving revision 1.171 retrieving revision 1.172 diff -u -r1.171 -r1.172 --- src/usr.bin/tmux/tmux.c 2016/10/10 21:29:23 1.171 +++ src/usr.bin/tmux/tmux.c 2016/10/11 13:21:59 1.172 @@ -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 @@ -47,6 +47,9 @@ 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 @@ exit(1); } -const char * +static const char * getshell(void) { struct passwd *pw; @@ -74,7 +77,7 @@ return (_PATH_BSHELL); } -int +static int checkshell(const char *shell) { if (shell == NULL || *shell == '\0' || *shell != '/')