mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 04:13:28 +01:00
Remove the version prefix from version numbers
This commit is contained in:
parent
78a13df158
commit
62f52a888a
@ -4888,12 +4888,12 @@ options_init_from_torrc(int argc, char **argv)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (config_line_find(cmdline_only_options, "--version")) {
|
if (config_line_find(cmdline_only_options, "--version")) {
|
||||||
printf("Tor version %s\n", get_version());
|
printf("Tor %s\n", get_version());
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (config_line_find(cmdline_only_options, "--library-versions")) {
|
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("Library versions\tCompiled\t\tRuntime\n");
|
||||||
printf("Libevent\t\t%-15s\t\t%s\n",
|
printf("Libevent\t\t%-15s\t\t%s\n",
|
||||||
tor_libevent_get_header_version_str(),
|
tor_libevent_get_header_version_str(),
|
||||||
|
@ -355,7 +355,7 @@ main(int argc, char **argv)
|
|||||||
usage();
|
usage();
|
||||||
|
|
||||||
if (!strcmp(arg[0],"--version")) {
|
if (!strcmp(arg[0],"--version")) {
|
||||||
printf("Tor version %s\n",VERSION);
|
printf("Tor %s\n",VERSION);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
while (n_args && *arg[0] == '-') {
|
while (n_args && *arg[0] == '-') {
|
||||||
|
Loading…
Reference in New Issue
Block a user