s3:rpcclient: Use C99 initializer for cmd_set in cmd_shutdown
authorAndreas Schneider <asn@samba.org>
Mon, 14 Jan 2019 08:51:05 +0000 (09:51 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Mon, 28 Jan 2019 09:29:20 +0000 (10:29 +0100)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
source3/rpcclient/cmd_shutdown.c

index 7cf4a30c5751af97870a27114a9d76621e081bdb..72027a86b4408a6e153c8c94fee6bd6060d218f5 100644 (file)
@@ -104,14 +104,34 @@ static NTSTATUS cmd_shutdown_abort(struct cli_state *cli,
 /* List of commands exported by this module */
 struct cmd_set shutdown_commands[] = {
 
-       { "SHUTDOWN"  },
+       {
+               .name = "SHUTDOWN",
+       },
 
 #if 0
-       { "shutdowninit", RPC_RTYPE_NTSTATUS, cmd_shutdown_init, NULL, &ndr_table_initshutdown.syntax_id, "Remote Shutdown (over shutdown pipe)",
-                               "syntax: shutdown [-m message] [-t timeout] [-r] [-h] [-f] (-r == reboot, -h == halt, -f == force)" },
+       {
+               .name               = "shutdowninit",
+               .returntype         = RPC_RTYPE_NTSTATUS,
+               .ntfn               = cmd_shutdown_init,
+               .wfn                = NULL,
+               .table              = &ndr_table_initshutdown.syntax_id,
+               .rpc_pipe           = "Remote Shutdown (over shutdown pipe)",
+               .description        = "syntax: shutdown [-m message] "
+                                     "[-t timeout] [-r] [-h] [-f] (-r == "
+                                     "reboot, -h == halt, -f == force)",
+       },
 
-       { "shutdownabort", RPC_RTYPE_NTSTATUS, cmd_shutdown_abort, NULL, &ndr_table_initshutdown.syntax_id, "Abort Shutdown (over shutdown pipe)",
-                               "syntax: shutdownabort" },
+       {
+               .name               = "shutdownabort",
+               .returntype         = RPC_RTYPE_NTSTATUS,
+               .ntfn               = cmd_shutdown_abort,
+               .wfn                = NULL,
+               .table              = &ndr_table_initshutdown.syntax_id,
+               .rpc_pipe           = "Abort Shutdown (over shutdown pipe)",
+               .description        = "syntax: shutdownabort",
+       },
 #endif
-       { NULL }
+       {
+               .name = NULL,
+       },
 };