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

index 6006cab1ac62fda406e738b4a0ee3c32c014cd02..6a7a8bab75c615e9b49ba31354dc4a3809ceab11 100644 (file)
@@ -318,9 +318,40 @@ static WERROR cmd_winreg_querymultiplevalues2(struct rpc_pipe_client *cli,
 
 struct cmd_set winreg_commands[] = {
 
-       { "WINREG" },
-       { "winreg_enumkey", RPC_RTYPE_WERROR, NULL, cmd_winreg_enumkeys, &ndr_table_winreg, NULL, "Enumerate Keys", "" },
-       { "querymultiplevalues", RPC_RTYPE_WERROR, NULL, cmd_winreg_querymultiplevalues, &ndr_table_winreg, NULL, "Query multiple values", "" },
-       { "querymultiplevalues2", RPC_RTYPE_WERROR, NULL, cmd_winreg_querymultiplevalues2, &ndr_table_winreg, NULL, "Query multiple values", "" },
-       { NULL }
+       {
+               .name = "WINREG",
+       },
+       {
+               .name               = "winreg_enumkey",
+               .returntype         = RPC_RTYPE_WERROR,
+               .ntfn               = NULL,
+               .wfn                = cmd_winreg_enumkeys,
+               .table              = &ndr_table_winreg,
+               .rpc_pipe           = NULL,
+               .description        = "Enumerate Keys",
+               .usage              = "",
+       },
+       {
+               .name               = "querymultiplevalues",
+               .returntype         = RPC_RTYPE_WERROR,
+               .ntfn               = NULL,
+               .wfn                = cmd_winreg_querymultiplevalues,
+               .table              = &ndr_table_winreg,
+               .rpc_pipe           = NULL,
+               .description        = "Query multiple values",
+               .usage              = "",
+       },
+       {
+               .name               = "querymultiplevalues2",
+               .returntype         = RPC_RTYPE_WERROR,
+               .ntfn               = NULL,
+               .wfn                = cmd_winreg_querymultiplevalues2,
+               .table              = &ndr_table_winreg,
+               .rpc_pipe           = NULL,
+               .description        = "Query multiple values",
+               .usage              = "",
+       },
+       {
+               .name = NULL,
+       },
 };