aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2018-04-05 22:05:44 -0700
committerGuy Harris <guy@alum.mit.edu>2018-04-06 05:06:18 +0000
commit024f75fb3e6576fe51fcc046932d876931d6beb8 (patch)
tree0a249b491e305e09b46492908d4e53c0fa0a419e
parent2dde35e91050571f610f16443964c076d8ad6260 (diff)
Fix handling of --extcap-version with an argument.
Not all versions of getopt_long() allow, for an option for which the argument is optional, --xyzzy {value}; at least some of them, such as the *BSD/macOS one, require --xyzzy={value}. Make it so. Change-Id: I856d9f253535d804c7674d209054bc6ce10ee91d Reviewed-on: https://code.wireshark.org/review/26772 Reviewed-by: Guy Harris <guy@alum.mit.edu>
-rw-r--r--extcap.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/extcap.c b/extcap.c
index a6a34544f2..79c5bb43af 100644
--- a/extcap.c
+++ b/extcap.c
@@ -1778,11 +1778,9 @@ extcap_load_interface_list(void)
}
arguments = g_list_append(arguments, g_strdup(EXTCAP_ARGUMENT_LIST_INTERFACES));
- arguments = g_list_append(arguments, g_strdup(EXTCAP_ARGUMENT_VERSION));
get_ws_version_number(&major, &minor, NULL);
-
- arguments = g_list_append(arguments, g_strdup_printf("%d.%d", major, minor));
+ arguments = g_list_append(arguments, g_strdup_printf("%s=%d.%d", EXTCAP_ARGUMENT_VERSION, major, minor));
extcap_callback_info_t cb_info;
cb_info.data = NULL;