s3:rpcclient: Use C99 initializer for cmd_set in cmd_wkssvc
authorAndreas Schneider <asn@samba.org>
Wed, 9 Jan 2019 14:14:05 +0000 (15:14 +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_wkssvc.c

index f9026255b3cf953b0f00bfba8cb289ba0c18b408..b1ffd5fc386c61bb1056b9a068dc8e7c6d3c0a69 100644 (file)
@@ -215,13 +215,60 @@ static WERROR cmd_wkssvc_enumerateusers(struct rpc_pipe_client *cli,
 
 struct cmd_set wkssvc_commands[] = {
 
-       { "WKSSVC" },
-       { "wkssvc_wkstagetinfo", RPC_RTYPE_WERROR, NULL, cmd_wkssvc_wkstagetinfo, &ndr_table_wkssvc, NULL, "Query WKSSVC Workstation Information", "" },
-       { "wkssvc_getjoininformation", RPC_RTYPE_WERROR, NULL, cmd_wkssvc_getjoininformation, &ndr_table_wkssvc, NULL, "Query WKSSVC Join Information", "" },
-       { "wkssvc_messagebuffersend", RPC_RTYPE_WERROR, NULL, cmd_wkssvc_messagebuffersend, &ndr_table_wkssvc, NULL, "Send WKSSVC message", "" },
-       { "wkssvc_enumeratecomputernames", RPC_RTYPE_WERROR, NULL, cmd_wkssvc_enumeratecomputernames, &ndr_table_wkssvc, NULL, "Enumerate WKSSVC computer names", "" },
-       { "wkssvc_enumerateusers", RPC_RTYPE_WERROR, NULL,
-         cmd_wkssvc_enumerateusers, &ndr_table_wkssvc, NULL,
-         "Enumerate WKSSVC users", "" },
-       { NULL }
+       {
+               .name = "WKSSVC",
+       },
+       {
+               .name               = "wkssvc_wkstagetinfo",
+               .returntype         = RPC_RTYPE_WERROR,
+               .ntfn               = NULL,
+               .wfn                = cmd_wkssvc_wkstagetinfo,
+               .table              = &ndr_table_wkssvc,
+               .rpc_pipe           = NULL,
+               .description        = "Query WKSSVC Workstation Information",
+               .usage              = "",
+       },
+       {
+               .name               = "wkssvc_getjoininformation",
+               .returntype         = RPC_RTYPE_WERROR,
+               .ntfn               = NULL,
+               .wfn                = cmd_wkssvc_getjoininformation,
+               .table              = &ndr_table_wkssvc,
+               .rpc_pipe           = NULL,
+               .description        = "Query WKSSVC Join Information",
+               .usage              = "",
+       },
+       {
+               .name               = "wkssvc_messagebuffersend",
+               .returntype         = RPC_RTYPE_WERROR,
+               .ntfn               = NULL,
+               .wfn                = cmd_wkssvc_messagebuffersend,
+               .table              = &ndr_table_wkssvc,
+               .rpc_pipe           = NULL,
+               .description        = "Send WKSSVC message",
+               .usage              = "",
+       },
+       {
+               .name               = "wkssvc_enumeratecomputernames",
+               .returntype         = RPC_RTYPE_WERROR,
+               .ntfn               = NULL,
+               .wfn                = cmd_wkssvc_enumeratecomputernames,
+               .table              = &ndr_table_wkssvc,
+               .rpc_pipe           = NULL,
+               .description        = "Enumerate WKSSVC computer names",
+               .usage              = "",
+       },
+       {
+               .name               = "wkssvc_enumerateusers",
+               .returntype         = RPC_RTYPE_WERROR,
+               .ntfn               = NULL,
+               .wfn                = cmd_wkssvc_enumerateusers,
+               .table              = &ndr_table_wkssvc,
+               .rpc_pipe           = NULL,
+               .description        = "Enumerate WKSSVC users",
+               .usage              = "",
+       },
+       {
+               .name =NULL,
+       },
 };