diff options
author | João Valverde <j@v6e.pt> | 2021-09-29 18:32:28 +0100 |
---|---|---|
committer | Wireshark GitLab Utility <gerald+gitlab-utility@wireshark.org> | 2021-09-30 13:59:28 +0000 |
commit | 5362d0c31b83fd7eb812f3215918504496c2f56a (patch) | |
tree | 8db56bb5b91a21371aeda3cbb273c953b851f522 /dumpcap.c | |
parent | 0173ea0ec1f87f2ab40c45eedb0ca1c1f77eea8e (diff) |
ws_getopt: Rename struct and macros
This is part of the API and should also be renamed to avoid conflicts.
Diffstat (limited to 'dumpcap.c')
-rw-r--r-- | dumpcap.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -4822,13 +4822,13 @@ main(int argc, char *argv[]) { char *err_msg; int opt; - static const struct option long_options[] = { - {"help", no_argument, NULL, 'h'}, - {"version", no_argument, NULL, 'v'}, + static const struct ws_option long_options[] = { + {"help", ws_no_argument, NULL, 'h'}, + {"version", ws_no_argument, NULL, 'v'}, LONGOPT_CAPTURE_COMMON - {"ifname", required_argument, NULL, LONGOPT_IFNAME}, - {"ifdescr", required_argument, NULL, LONGOPT_IFDESCR}, - {"capture-comment", required_argument, NULL, LONGOPT_CAPTURE_COMMENT}, + {"ifname", ws_required_argument, NULL, LONGOPT_IFNAME}, + {"ifdescr", ws_required_argument, NULL, LONGOPT_IFDESCR}, + {"capture-comment", ws_required_argument, NULL, LONGOPT_CAPTURE_COMMENT}, {0, 0, 0, 0 } }; |