mirror of
https://github.com/tmux/tmux.git
synced 2025-09-02 05:21:10 +00:00
Tidy up some includes.
This commit is contained in:
7
tmux.c
7
tmux.c
@ -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;
|
||||
|
Reference in New Issue
Block a user