]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:utils: Use C99 initializer for poptOption in profiles
authorAndreas Schneider <asn@samba.org>
Mon, 14 Jan 2019 08:52:48 +0000 (09:52 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Mon, 28 Jan 2019 09:29:13 +0000 (10:29 +0100)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
source3/utils/profiles.c

index 3451c0b80524e85b93ceaaeb272aa0d549491031..8c7bd2cb0a4eb2106cb99e85fddac725a9894495 100644 (file)
@@ -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