aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/main.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2005-09-03 18:21:48 +0000
committerGuy Harris <guy@alum.mit.edu>2005-09-03 18:21:48 +0000
commitf0b7251b34e7f41357945d2f3cf612189d20da02 (patch)
treee38d43809700525502522a2862bbd6ded6fd853e /gtk/main.c
parent621cf58ac55589fd3056fc5f92c073b7bde54e56 (diff)
Use the "svnversion" variable, exported by version_info.c, to print the
version number from SVN for non-release builds, just as Tethereal does. Fixes bug 408. svn path=/trunk/; revision=15674
Diffstat (limited to 'gtk/main.c')
-rw-r--r--gtk/main.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/gtk/main.c b/gtk/main.c
index e2aa215c96..5e589ef522 100644
--- a/gtk/main.c
+++ b/gtk/main.c
@@ -1119,12 +1119,8 @@ show_version(void)
create_console();
#endif
- printf(PACKAGE " " VERSION
-#ifdef SVNVERSION
- " (" SVNVERSION ")"
-#endif
- "\n\n%s\n\n%s\n",
- comp_info_str->str, runtime_info_str->str);
+ printf(PACKAGE " " VERSION "%s\n\n%s\n\n%s\n",
+ svnversion, comp_info_str->str, runtime_info_str->str);
#ifdef _WIN32
destroy_console();