summaryrefslogtreecommitdiff
path: root/source3/rpcclient
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2019-01-14 09:51:05 +0100
committerAndreas Schneider <asn@cryptomilk.org>2019-01-28 10:29:20 +0100
commit0a6f78d736f20bb02719a4f99ce9b6ecb96d0755 (patch)
treeef23a8074563ef7bfaa58d82b93999507ed15b1b /source3/rpcclient
parent5701586d53109cfd84cfeebf6cfcaf162a19320c (diff)
downloadsamba-0a6f78d736f20bb02719a4f99ce9b6ecb96d0755.tar.gz
s3:rpcclient: Use C99 initializer for cmd_set in cmd_shutdown
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Diffstat (limited to 'source3/rpcclient')
-rw-r--r--source3/rpcclient/cmd_shutdown.c32
1 files changed, 26 insertions, 6 deletions
diff --git a/source3/rpcclient/cmd_shutdown.c b/source3/rpcclient/cmd_shutdown.c
index 7cf4a30c575..72027a86b44 100644
--- a/source3/rpcclient/cmd_shutdown.c
+++ b/source3/rpcclient/cmd_shutdown.c
@@ -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,
+ },
};