From f597234785f8e4ddf1cf9f7c5d6f5fbacd9631bf Mon Sep 17 00:00:00 2001 From: Dario Lombardo Date: Wed, 24 Aug 2016 15:10:51 +0200 Subject: extcap: add binary name and version to help message. Change-Id: I8f8083c817065cf66fd006a1caeb309d26209509 Reviewed-on: https://code.wireshark.org/review/17305 Petri-Dish: Dario Lombardo Reviewed-by: Peter Wu Tested-by: Petri Dish Buildbot Reviewed-by: Roland Knall --- extcap/randpktdump.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'extcap/randpktdump.c') diff --git a/extcap/randpktdump.c b/extcap/randpktdump.c index 420caa45d6..67214395f2 100644 --- a/extcap/randpktdump.c +++ b/extcap/randpktdump.c @@ -144,7 +144,8 @@ int main(int argc, char *argv[]) extcap_parameters * extcap_conf = g_new0(extcap_parameters, 1); char* help_header = NULL; - extcap_base_set_util_info(extcap_conf, RANDPKTDUMP_VERSION_MAJOR, RANDPKTDUMP_VERSION_MINOR, RANDPKTDUMP_VERSION_RELEASE, NULL); + extcap_base_set_util_info(extcap_conf, argv[0], RANDPKTDUMP_VERSION_MAJOR, RANDPKTDUMP_VERSION_MINOR, + RANDPKTDUMP_VERSION_RELEASE, NULL); extcap_base_register_interface(extcap_conf, RANDPKT_EXTCAP_INTERFACE, "Random packet generator", 147, "Generator dependent DLT"); help_header = g_strdup_printf( -- cgit v1.2.3