From 5362d0c31b83fd7eb812f3215918504496c2f56a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Valverde?= Date: Wed, 29 Sep 2021 18:32:28 +0100 Subject: ws_getopt: Rename struct and macros This is part of the API and should also be renamed to avoid conflicts. --- extcap/etwdump.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'extcap/etwdump.c') diff --git a/extcap/etwdump.c b/extcap/etwdump.c index 29e7499841..8ec5407141 100644 --- a/extcap/etwdump.c +++ b/extcap/etwdump.c @@ -41,13 +41,13 @@ enum { OPT_PARAMS }; -static struct option longopts[] = { +static struct ws_option longopts[] = { EXTCAP_BASE_OPTIONS, - { "help", no_argument, NULL, OPT_HELP}, - { "version", no_argument, NULL, OPT_VERSION}, - { "iue", optional_argument, NULL, OPT_INCLUDE_UNDECIDABLE_EVENT}, - { "etlfile", required_argument, NULL, OPT_ETLFILE}, - { "params", required_argument, NULL, OPT_PARAMS}, + { "help", ws_no_argument, NULL, OPT_HELP}, + { "version", ws_no_argument, NULL, OPT_VERSION}, + { "iue", ws_optional_argument, NULL, OPT_INCLUDE_UNDECIDABLE_EVENT}, + { "etlfile", ws_required_argument, NULL, OPT_ETLFILE}, + { "params", ws_required_argument, NULL, OPT_PARAMS}, { 0, 0, 0, 0 } }; -- cgit v1.2.3