diff options
author | 2014-10-20 23:27:14 +0000 | |
---|---|---|
committer | 2014-10-20 23:27:14 +0000 | |
commit | 26529d6f1f271c5f6986c5143821a95677eb1285 (patch) | |
tree | a09a95ea5b3f5e4cc808c09f3af4e00b227ddb9f /usr.bin/tmux/tmux.c | |
parent | Move suspend-client code into detach-client. (diff) | |
download | wireguard-openbsd-26529d6f1f271c5f6986c5143821a95677eb1285.tar.xz wireguard-openbsd-26529d6f1f271c5f6986c5143821a95677eb1285.zip |
Tidy up some includes.
Diffstat (limited to 'usr.bin/tmux/tmux.c')
-rw-r--r-- | usr.bin/tmux/tmux.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/usr.bin/tmux/tmux.c b/usr.bin/tmux/tmux.c index 689463195c1..5aad6f1f9ae 100644 --- a/usr.bin/tmux/tmux.c +++ b/usr.bin/tmux/tmux.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tmux.c,v 1.131 2014/04/17 07:55:43 nicm Exp $ */ +/* $OpenBSD: tmux.c,v 1.132 2014/10/20 23:27:14 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -22,6 +22,7 @@ #include <errno.h> #include <event.h> #include <fcntl.h> +#include <getopt.h> #include <locale.h> #include <paths.h> #include <pwd.h> @@ -46,7 +47,7 @@ char *cfg_file; char *shell_cmd; int debug_level; time_t start_time; -char socket_path[MAXPATHLEN]; +char socket_path[PATH_MAX]; int login_shell; char *environ_path; @@ -124,7 +125,7 @@ areshell(const char *shell) char * makesocketpath(const char *label) { - char base[MAXPATHLEN], realbase[MAXPATHLEN], *path, *s; + char base[PATH_MAX], realbase[PATH_MAX], *path, *s; struct stat sb; u_int uid; @@ -202,7 +203,7 @@ int main(int argc, char **argv) { struct passwd *pw; - char *s, *path, *label, **var, tmp[MAXPATHLEN]; + char *s, *path, *label, **var, tmp[PATH_MAX]; char in[256]; const char *home; long long pid; |