diff options
Diffstat (limited to 'tmux.c')
-rw-r--r-- | tmux.c | 15 |
1 files changed, 2 insertions, 13 deletions
@@ -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 @@ -390,5 +379,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)); } |