diff options
author | Guy Harris <guy@alum.mit.edu> | 2014-06-21 18:02:27 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2014-06-22 01:06:25 +0000 |
commit | c46329c27b8c31729d2d51dc4f69da9b3923de04 (patch) | |
tree | 196522550c36225b4248bc8c6ed2fb86d5b0ddab /ui/gtk/follow_stream.c | |
parent | a70dea195625f32a026d10d937345d177f81aead (diff) |
Add a routine to return a version string including VCS information.
Add a routine get_ws_vcs_version_info() that, for builds from a tree
checked out from Wireshark's version control system, returns a string
that includes both the Wireshark version number and an indication of
what particular VCS version was checked out, and just returns
Wireshark's version number for other builds.
Use that routine rather than manually gluing VERSION and the Git version
number together.
("vcs", not "git", just in case we do something bizarre or mercurial
some day. :-))
Change-Id: Ie5c6dc83b9d3f56655eaef30fec3ec9916b6320d
Reviewed-on: https://code.wireshark.org/review/2529
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'ui/gtk/follow_stream.c')
-rw-r--r-- | ui/gtk/follow_stream.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ui/gtk/follow_stream.c b/ui/gtk/follow_stream.c index 16a8898530..3b548efc52 100644 --- a/ui/gtk/follow_stream.c +++ b/ui/gtk/follow_stream.c @@ -44,6 +44,7 @@ #include <ui/simple_dialog.h> #include <wsutil/file_util.h> +#include <wsutil/ws_version_info.h> #include "ui/gtk/color_utils.h" #include "ui/gtk/stock_icons.h" @@ -61,8 +62,6 @@ #include "ui/win32/print_win32.h" #endif -#include "version_info.h" - /* static variable declarations to speed up the performance * of follow_load_text and follow_add_to_gtk_text */ @@ -458,7 +457,7 @@ follow_print_stream(GtkWidget * w _U_, gpointer data) return; } - if (!print_preamble(stream, cfile.filename, wireshark_gitversion)) + if (!print_preamble(stream, cfile.filename, get_ws_vcs_version_info())) goto print_error; switch (follow_read_stream(follow_info, follow_print_text, stream)) { |