s3:rpcclient: Use C99 initializer for cmd_set in cmd_witness
authorAndreas Schneider <asn@samba.org>
Fri, 11 Jan 2019 13:47:02 +0000 (14:47 +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_witness.c

index 3bc7d211606d278172b72b384765002b58574871..733424beac333f872ac7fdadd9a7b68794c02032 100644 (file)
@@ -550,13 +550,62 @@ done:
 }
 
 struct cmd_set witness_commands[] = {
-       {"WITNESS"},
-       {"GetInterfaceList", RPC_RTYPE_WERROR, NULL, &cmd_witness_GetInterfaceList, &ndr_table_witness, NULL, "", ""},
-       {"Register", RPC_RTYPE_WERROR, NULL, &cmd_witness_Register, &ndr_table_witness, NULL, "", ""},
-       {"UnRegister", RPC_RTYPE_WERROR, NULL, &cmd_witness_UnRegister, &ndr_table_witness, NULL, "", ""},
-       {"AsyncNotify", RPC_RTYPE_WERROR, NULL, &cmd_witness_AsyncNotify, &ndr_table_witness, NULL, "", ""},
-       {"RegisterEx", RPC_RTYPE_WERROR, NULL, &cmd_witness_RegisterEx, &ndr_table_witness, NULL, "", ""},
-       {NULL}
+       {
+               .name = "WITNESS",
+       },
+       {
+               .name               = "GetInterfaceList",
+               .returntype         = RPC_RTYPE_WERROR,
+               .ntfn               = NULL,
+               .wfn                = &cmd_witness_GetInterfaceList,
+               .table              = &ndr_table_witness,
+               .rpc_pipe           = NULL,
+               .description        = "",
+               .usage              = "",
+       },
+       {
+               .name               = "Register",
+               .returntype         = RPC_RTYPE_WERROR,
+               .ntfn               = NULL,
+               .wfn                = &cmd_witness_Register,
+               .table              = &ndr_table_witness,
+               .rpc_pipe           = NULL,
+               .description        = "",
+               .usage              = "",
+       },
+       {
+               .name               = "UnRegister",
+               .returntype         = RPC_RTYPE_WERROR,
+               .ntfn               = NULL,
+               .wfn                = &cmd_witness_UnRegister,
+               .table              = &ndr_table_witness,
+               .rpc_pipe           = NULL,
+               .description        = "",
+               .usage              = "",
+       },
+       {
+               .name               = "AsyncNotify",
+               .returntype         = RPC_RTYPE_WERROR,
+               .ntfn               = NULL,
+               .wfn                = &cmd_witness_AsyncNotify,
+               .table              = &ndr_table_witness,
+               .rpc_pipe           = NULL,
+               .description        = "",
+               .usage              = "",
+       },
+       {
+               .name               = "RegisterEx",
+               .returntype         = RPC_RTYPE_WERROR,
+               .ntfn               = NULL,
+               .wfn                = &cmd_witness_RegisterEx,
+               .table              = &ndr_table_witness,
+               .rpc_pipe           = NULL,
+               .description        = "",
+               .usage              = "",
+       },
+       {
+               .name = NULL,
+       }
 };
 
 /*