mirror of
https://github.com/tmux/tmux.git
synced 2025-09-01 20:57:00 +00:00
Add static in window-*.c and move some internal functions out of tmux.h.
This commit is contained in:
7
tmux.c
7
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 != '/')
|
||||
|
Reference in New Issue
Block a user