From: Andreas Schneider Date: Fri, 11 Jan 2019 13:53:36 +0000 (+0100) Subject: s3:utils: Use C99 initializer for poptOption in smbtree X-Git-Tag: ldb-1.6.1~403 X-Git-Url: http://git.samba.org/samba.git/?p=vlendec%2Fsamba-autobuild%2F.git;a=commitdiff_plain;h=0de35fd3f691a42ca5985f5ddd5dd3821d8d44a2 s3:utils: Use C99 initializer for poptOption in smbtree Signed-off-by: Andreas Schneider Reviewed-by: Douglas Bagnall --- diff --git a/source3/utils/smbtree.c b/source3/utils/smbtree.c index fb0f165a18d..9f589b4060f 100644 --- a/source3/utils/smbtree.c +++ b/source3/utils/smbtree.c @@ -292,9 +292,30 @@ int main(int argc, char *argv[]) const char **argv_const = discard_const_p(const char *, argv); struct poptOption long_options[] = { POPT_AUTOHELP - { "broadcast", 'b', POPT_ARG_VAL, &use_bcast, True, "Use broadcast instead of using the master browser" }, - { "domains", 'D', POPT_ARG_VAL, &level, LEV_WORKGROUP, "List only domains (workgroups) of tree" }, - { "servers", 'S', POPT_ARG_VAL, &level, LEV_SERVER, "List domains(workgroups) and servers of tree" }, + { + .longName = "broadcast", + .shortName = 'b', + .argInfo = POPT_ARG_VAL, + .arg = &use_bcast, + .val = True, + .descrip = "Use broadcast instead of using the master browser" , + }, + { + .longName = "domains", + .shortName = 'D', + .argInfo = POPT_ARG_VAL, + .arg = &level, + .val = LEV_WORKGROUP, + .descrip = "List only domains (workgroups) of tree" , + }, + { + .longName = "servers", + .shortName = 'S', + .argInfo = POPT_ARG_VAL, + .arg = &level, + .val = LEV_SERVER, + .descrip = "List domains(workgroups) and servers of tree" , + }, POPT_COMMON_SAMBA POPT_COMMON_CREDENTIALS POPT_TABLEEND