aboutsummaryrefslogtreecommitdiff
path: root/tmux.c
diff options
context:
space:
mode:
authornicm <nicm>2015-08-30 22:19:07 +0000
committernicm <nicm>2015-08-30 22:19:07 +0000
commitdd92b6e83dbd4b5f24ad062c7944ca32add8d0e5 (patch)
treef5e6ea398be66c736832a59b88505a3791a4fd8b /tmux.c
parentb87dc608d9b5b470926aaf77c5956befdfb7bc7b (diff)
downloadrtmux-dd92b6e83dbd4b5f24ad062c7944ca32add8d0e5.tar.gz
rtmux-dd92b6e83dbd4b5f24ad062c7944ca32add8d0e5.tar.bz2
rtmux-dd92b6e83dbd4b5f24ad062c7944ca32add8d0e5.zip
Event base does not need to be global.
Diffstat (limited to 'tmux.c')
-rw-r--r--tmux.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/tmux.c b/tmux.c
index e66d24c0..b984b903 100644
--- a/tmux.c
+++ b/tmux.c
@@ -41,8 +41,6 @@ struct options global_s_options; /* session options */
struct options global_w_options; /* window options */
struct environ global_environ;
-struct event_base *ev_base;
-
char *cfg_file;
char *shell_cmd;
int debug_level;
@@ -386,6 +384,5 @@ main(int argc, char **argv)
setproctitle("%s (%s)", __progname, socket_path);
/* Pass control to the client. */
- ev_base = event_init();
- exit(client_main(argc, argv, flags));
+ exit(client_main(event_init(), argc, argv, flags));
}