summaryrefslogtreecommitdiffstats
path: root/tmux.c
diff options
context:
space:
mode:
Diffstat (limited to 'tmux.c')
-rw-r--r--tmux.c15
1 files changed, 2 insertions, 13 deletions
diff --git a/tmux.c b/tmux.c
index 572e705c..e296a13a 100644
--- a/tmux.c
+++ b/tmux.c
@@ -20,19 +20,16 @@
#include <sys/stat.h>
#include <sys/utsname.h>
-#include <err.h>
#include <errno.h>
#include <event.h>
#include <fcntl.h>
#include <langinfo.h>
#include <locale.h>
-#include <paths.h>
#include <pwd.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
-#include <util.h>
#include "tmux.h"
@@ -216,15 +213,7 @@ find_home(void)
const char *
getversion(void)
{
- static char *version;
- struct utsname u;
-
- if (version == NULL) {
- if (uname(&u) < 0)
- fatalx("uname failed");
- xasprintf(&version, "openbsd-%s", u.release);
- }
- return version;
+ return TMUX_VERSION;
}
int
@@ -393,5 +382,5 @@ main(int argc, char **argv)
free(label);
/* Pass control to the client. */
- exit(client_main(event_init(), argc, argv, flags));
+ exit(client_main(osdep_event_init(), argc, argv, flags));
}