Tidy up some includes.

This commit is contained in:
nicm
2014-10-20 23:27:14 +00:00
parent 30bacf6f30
commit 900f6fc17e
12 changed files with 20 additions and 15 deletions

7
tmux.c
View File

@ -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;