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

index 69693a99d0791a8acc4fcd8fb0a2f74eb677bc21..1b8a27234d14c089a31b728bdff8ff312251d5c6 100644 (file)
@@ -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,
+       },
 };