Remove the version prefix from version numbers

This commit is contained in:
cypherpunks 2016-12-16 08:50:39 +00:00 committed by Nick Mathewson
parent 78a13df158
commit 62f52a888a
2 changed files with 3 additions and 3 deletions

View File

@ -4888,12 +4888,12 @@ options_init_from_torrc(int argc, char **argv)
}
if (config_line_find(cmdline_only_options, "--version")) {
printf("Tor version %s\n", get_version());
printf("Tor %s\n", get_version());
exit(0);
}
if (config_line_find(cmdline_only_options, "--library-versions")) {
printf("Tor version %s\n", get_version());
printf("Tor %s\n", get_version());
printf("Library versions\tCompiled\t\tRuntime\n");
printf("Libevent\t\t%-15s\t\t%s\n",
tor_libevent_get_header_version_str(),

View File

@ -355,7 +355,7 @@ main(int argc, char **argv)
usage();
if (!strcmp(arg[0],"--version")) {
printf("Tor version %s\n",VERSION);
printf("Tor %s\n",VERSION);
return 0;
}
while (n_args && *arg[0] == '-') {