summaryrefslogtreecommitdiffstats
path: root/tmux.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2020-01-28 11:28:30 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2020-01-28 11:28:30 +0000
commit685eb381dec7fc741a15ce11a84d8c96ed66ce42 (patch)
treea68927ec66c1a76d1aea9bef257d51b4a4869d31 /tmux.c
parentee3d3db364b6c2469c1acaa88bb64341090d3af1 (diff)
Fix for version changes.
Diffstat (limited to 'tmux.c')
-rw-r--r--tmux.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/tmux.c b/tmux.c
index b5cdfbf9..3c1feccc 100644
--- a/tmux.c
+++ b/tmux.c
@@ -213,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
@@ -264,9 +256,6 @@ main(int argc, char **argv)
else
flags |= CLIENT_CONTROL;
break;
- case 'V':
- printf("%s %s\n", getprogname(), VERSION);
- exit(0);
case 'f':
set_cfg_file(optarg);
break;