s4:client: Use C99 initializer for poptOption in cifsdd
authorAndreas Schneider <asn@samba.org>
Mon, 14 Jan 2019 17:05:34 +0000 (18:05 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Mon, 28 Jan 2019 09:29:16 +0000 (10:29 +0100)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
source4/client/cifsdd.c

index 7ab59cd49e20e84bde40126f275040a631c2e4bd..8ffb7b9a4174b4ea63fc8f789a9147b215ddde2b 100644 (file)
@@ -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)
 {