From 328cb7aa9a6b2cc667f2e2de91de492a1c7d007f Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Mon, 14 Jan 2019 09:42:17 +0100 Subject: [PATCH] s3:rpcclient: Use C99 initializer for cmd_set in cmd_test Signed-off-by: Andreas Schneider Reviewed-by: Douglas Bagnall --- source3/rpcclient/cmd_test.c | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/source3/rpcclient/cmd_test.c b/source3/rpcclient/cmd_test.c index 69693a99d079..1b8a27234d14 100644 --- a/source3/rpcclient/cmd_test.c +++ b/source3/rpcclient/cmd_test.c @@ -77,10 +77,19 @@ static NTSTATUS cmd_testme(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct cmd_set test_commands[] = { - { "TESTING" }, - - { "testme", RPC_RTYPE_NTSTATUS, cmd_testme, NULL, - NULL, NULL, "Sample test", "testme" }, - - { NULL } + { + .name = "TESTING", + }, + + { + .name = "testme", + .returntype = RPC_RTYPE_NTSTATUS, + .ntfn = cmd_testme, + .description = "Sample test", + .usage = "testme", + }, + + { + .name = NULL, + }, }; -- 2.34.1