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 /sharkd_daemon.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 'sharkd_daemon.c')
-rw-r--r-- | sharkd_daemon.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sharkd_daemon.c b/sharkd_daemon.c index d5bda8da61..7932bb8842 100644 --- a/sharkd_daemon.c +++ b/sharkd_daemon.c @@ -222,11 +222,11 @@ sharkd_init(int argc, char **argv) static const char optstring[] = OPTSTRING; // right now we don't have any long options - static const struct option long_options[] = { - {"api", required_argument, NULL, 'a'}, - {"help", no_argument, NULL, 'h'}, - {"version", no_argument, NULL, 'v'}, - {"config-profile", required_argument, NULL, 'C'}, + static const struct ws_option long_options[] = { + {"api", ws_required_argument, NULL, 'a'}, + {"help", ws_no_argument, NULL, 'h'}, + {"version", ws_no_argument, NULL, 'v'}, + {"config-profile", ws_required_argument, NULL, 'C'}, {0, 0, 0, 0 } }; |