Tidy the code that works out the socket path, and just use the full path

in the global socket_path rather than copying it.
This commit is contained in:
nicm
2015-11-24 22:27:22 +00:00
parent 8976dac9e0
commit c913fb99b6
3 changed files with 42 additions and 50 deletions

2
tmux.h
View File

@ -1433,7 +1433,7 @@ extern struct options *global_w_options;
extern struct environ *global_environ;
extern char *shell_cmd;
extern struct timeval start_time;
extern char socket_path[PATH_MAX];
extern const char *socket_path;
const char *getshell(void);
int checkshell(const char *);
int areshell(const char *);