aboutsummaryrefslogtreecommitdiffstats
path: root/extcap/udpdump.c
diff options
context:
space:
mode:
authorJoão Valverde <j@v6e.pt>2021-09-29 18:32:28 +0100
committerWireshark GitLab Utility <gerald+gitlab-utility@wireshark.org>2021-09-30 13:59:28 +0000
commit5362d0c31b83fd7eb812f3215918504496c2f56a (patch)
tree8db56bb5b91a21371aeda3cbb273c953b851f522 /extcap/udpdump.c
parent0173ea0ec1f87f2ab40c45eedb0ca1c1f77eea8e (diff)
downloadwireshark-5362d0c31b83fd7eb812f3215918504496c2f56a.tar.gz
wireshark-5362d0c31b83fd7eb812f3215918504496c2f56a.tar.bz2
wireshark-5362d0c31b83fd7eb812f3215918504496c2f56a.zip
ws_getopt: Rename struct and macros
This is part of the API and should also be renamed to avoid conflicts.
Diffstat (limited to 'extcap/udpdump.c')
-rw-r--r--extcap/udpdump.c10
1 files changed, 5 insertions, 5 deletions
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 }
};