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/udpdump.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'extcap/udpdump.c') diff --git a/extcap/udpdump.c b/extcap/udpdump.c index 63b29253e8..be8f044a2d 100644 --- a/extcap/udpdump.c +++ b/extcap/udpdump.c @@ -72,14 +72,14 @@ enum { OPT_PAYLOAD }; -static struct option longopts[] = { +static struct ws_option longopts[] = { EXTCAP_BASE_OPTIONS, /* Generic application options */ - { "help", no_argument, NULL, OPT_HELP}, - { "version", no_argument, NULL, OPT_VERSION}, + { "help", ws_no_argument, NULL, OPT_HELP}, + { "version", ws_no_argument, NULL, OPT_VERSION}, /* Interfaces options */ - { "port", required_argument, NULL, OPT_PORT}, - { "payload", required_argument, NULL, OPT_PAYLOAD}, + { "port", ws_required_argument, NULL, OPT_PORT}, + { "payload", ws_required_argument, NULL, OPT_PAYLOAD}, { 0, 0, 0, 0 } }; -- cgit v1.2.3