Fix for version changes.

This commit is contained in:
Nicholas Marriott
2020-01-28 11:28:30 +00:00
parent ee3d3db364
commit 685eb381de
3 changed files with 5 additions and 14 deletions

13
tmux.c
View File

@ -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;