aboutsummaryrefslogtreecommitdiffstats
path: root/tfshark.c
diff options
context:
space:
mode:
authorDavid Perry <boolean263@protonmail.com>2022-02-24 13:27:08 +0000
committerA Wireshark GitLab Utility <6629907-ws-gitlab-utility@users.noreply.gitlab.com>2022-02-24 13:27:08 +0000
commite2fab18853df2f840ad94a83228e8b020dd29496 (patch)
tree31984e11565a3dc5a4b20992406e6c417c705fb1 /tfshark.c
parent80cb8fbb1249c4230a266ea73229f4dabca9203d (diff)
wsutil: New API to gather compile/runtime info
Diffstat (limited to 'tfshark.c')
-rw-r--r--tfshark.c14
1 files changed, 3 insertions, 11 deletions
diff --git a/tfshark.c b/tfshark.c
index 1d8a6c8a2f..245c5ea8cc 100644
--- a/tfshark.c
+++ b/tfshark.c
@@ -264,13 +264,6 @@ print_current_user(void)
}
}
-static void
-get_tfshark_runtime_version_info(GString *str)
-{
- /* stuff used by libwireshark */
- epan_get_runtime_version_info(str);
-}
-
int
main(int argc, char *argv[])
{
@@ -377,10 +370,9 @@ main(int argc, char *argv[])
initialize_funnel_ops();
/* Initialize the version information. */
- ws_init_version_info("TFShark (Wireshark)", NULL,
- epan_get_compiled_version_info,
- get_tfshark_runtime_version_info);
-
+ ws_init_version_info("TFShark",
+ epan_gather_compile_info,
+ epan_gather_runtime_info);
/*
* In order to have the -X opts assigned before the wslua machine starts
* we need to call getopts before epan_init() gets called.