s3:torture: Use C99 initializer for cmd_set in vfstest
authorAndreas Schneider <asn@samba.org>
Tue, 8 Jan 2019 16:11:57 +0000 (17:11 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Mon, 28 Jan 2019 09:29:17 +0000 (10:29 +0100)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
source3/torture/vfstest.c

index c9f602ff04e74737057c5c7f4dd816d8571b0955..0707943913568f3aeb5ace9f877d70e84212848b 100644 (file)
@@ -232,7 +232,7 @@ static NTSTATUS cmd_quit(struct vfs_state *vfs, TALLOC_CTX *mem_ctx, int argc, c
 
 static struct cmd_set vfstest_commands[] = {
 
-       { "GENERAL OPTIONS" },
+       { .name = "GENERAL OPTIONS" },
 
        { "conf",       cmd_conf,       "Load smb configuration file", "conf <smb.conf>" },
        { "help",       cmd_help,       "Get help on commands", "" },
@@ -242,12 +242,17 @@ static struct cmd_set vfstest_commands[] = {
        { "exit",       cmd_quit,       "Exit program", "" },
        { "quit",       cmd_quit,       "Exit program", "" },
 
-       { NULL }
+       { .name = NULL }
 };
 
 static struct cmd_set separator_command[] = {
-       { "---------------", NULL,      "----------------------" },
-       { NULL }
+       {
+               .name        = "---------------",
+               .description = "----------------------"
+       },
+       {
+               .name = NULL,
+       },
 };