From: Andreas Schneider Date: Mon, 14 Jan 2019 08:52:48 +0000 (+0100) Subject: s3:utils: Use C99 initializer for poptOption in profiles X-Git-Tag: ldb-1.6.1~410 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aa944d50fa466c80d4b220387199cd48658be9a6;p=thirdparty%2Fsamba.git s3:utils: Use C99 initializer for poptOption in profiles Signed-off-by: Andreas Schneider Reviewed-by: Douglas Bagnall --- diff --git a/source3/utils/profiles.c b/source3/utils/profiles.c index 3451c0b8052..8c7bd2cb0a4 100644 --- a/source3/utils/profiles.c +++ b/source3/utils/profiles.c @@ -219,9 +219,30 @@ int main( int argc, const char *argv[] ) char *orig_filename, *new_filename; struct poptOption long_options[] = { POPT_AUTOHELP - { "change-sid", 'c', POPT_ARG_STRING, NULL, 'c', "Provides SID to change" }, - { "new-sid", 'n', POPT_ARG_STRING, NULL, 'n', "Provides SID to change to" }, - { "verbose", 'v', POPT_ARG_NONE, &opt_verbose, 'v', "Verbose output" }, + { + .longName = "change-sid", + .shortName = 'c', + .argInfo = POPT_ARG_STRING, + .arg = NULL, + .val = 'c', + .descrip = "Provides SID to change", + }, + { + .longName = "new-sid", + .shortName = 'n', + .argInfo = POPT_ARG_STRING, + .arg = NULL, + .val = 'n', + .descrip = "Provides SID to change to", + }, + { + .longName = "verbose", + .shortName = 'v', + .argInfo = POPT_ARG_NONE, + .arg = &opt_verbose, + .val = 'v', + .descrip = "Verbose output", + }, POPT_COMMON_SAMBA POPT_COMMON_VERSION POPT_TABLEEND