diff options
author | Andreas Schneider <asn@samba.org> | 2019-01-14 18:05:34 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2019-01-28 10:29:16 +0100 |
commit | f66ead39de8d08472bbacf6b7e9b0d94d4d69d36 (patch) | |
tree | 7ea944b963eefd3334c4f2f6bfc5803aed684ae3 /source4/client | |
parent | ad13bd56f2a45c74aaaca1f30078d6dcc61c91cb (diff) | |
download | samba-f66ead39de8d08472bbacf6b7e9b0d94d4d69d36.tar.gz |
s4:client: Use C99 initializer for poptOption in cifsdd
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Diffstat (limited to 'source4/client')
-rw-r--r-- | source4/client/cifsdd.c | 26 |
1 files changed, 21 insertions, 5 deletions
diff --git a/source4/client/cifsdd.c b/source4/client/cifsdd.c index 7ab59cd49e2..8ffb7b9a417 100644 --- a/source4/client/cifsdd.c +++ b/source4/client/cifsdd.c @@ -540,11 +540,27 @@ done: /* ------------------------------------------------------------------------- */ struct poptOption cifsddHelpOptions[] = { - { NULL, '\0', POPT_ARG_CALLBACK, (void *)&cifsdd_help_message, '\0', NULL, NULL }, - { "help", '?', 0, NULL, '?', "Show this help message", NULL }, - { "usage", '\0', 0, NULL, 'u', "Display brief usage message", NULL }, - { NULL } -} ; + { + .longName = NULL, + .shortName = '\0', + .argInfo = POPT_ARG_CALLBACK, + .arg = (void *)&cifsdd_help_message, + .val = '\0', + }, + { + .longName = "help", + .shortName = '?', + .val = '?', + .descrip = "Show this help message", + }, + { + .longName = "usage", + .shortName = '\0', + .val = 'u', + .descrip = "Display brief usage message", + }, + POPT_TABLEEND +}; int main(int argc, const char ** argv) { |