s3:rpcclient: Use C99 initializer for cmd_set in cmd_iremotewinspool
authorAndreas Schneider <asn@samba.org>
Wed, 9 Jan 2019 15:21:34 +0000 (16:21 +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_iremotewinspool.c

index 7f0cecfaf016e6a48dd92187d01bc26690c2e70e..5a8096b6d97cbd2835d88cb983c9f4ac764323bf 100644 (file)
@@ -163,17 +163,33 @@ static WERROR cmd_iremotewinspool_async_core_printer_driver_installed(struct rpc
 /* List of commands exported by this module */
 struct cmd_set iremotewinspool_commands[] = {
 
-       { "IRemoteWinspool"  },
-
-       { "winspool_AsyncOpenPrinter", RPC_RTYPE_WERROR, NULL,
-               cmd_iremotewinspool_async_open_printer,
-               &ndr_table_iremotewinspool,
-               NULL, "Open printer handle", "" },
-
-       { "winspool_AsyncCorePrinterDriverInstalled", RPC_RTYPE_WERROR, NULL,
-               cmd_iremotewinspool_async_core_printer_driver_installed,
-               &ndr_table_iremotewinspool,
-               NULL, "Query Core Printer Driver Installed", "" },
-
-       { NULL }
+       {
+               .name = "IRemoteWinspool",
+       },
+
+       {
+               .name               = "winspool_AsyncOpenPrinter",
+               .returntype         = RPC_RTYPE_WERROR,
+               .ntfn               = NULL,
+               .wfn                = cmd_iremotewinspool_async_open_printer,
+               .table              = &ndr_table_iremotewinspool,
+               .rpc_pipe           = NULL,
+               .description        = "Open printer handle",
+               .usage              = "",
+       },
+
+       {
+               .name               = "winspool_AsyncCorePrinterDriverInstalled",
+               .returntype         = RPC_RTYPE_WERROR,
+               .ntfn               = NULL,
+               .wfn                = cmd_iremotewinspool_async_core_printer_driver_installed,
+               .table              = &ndr_table_iremotewinspool,
+               .rpc_pipe           = NULL,
+               .description        = "Query Core Printer Driver Installed",
+               .usage              = "",
+       },
+
+       {
+               .name = NULL,
+       },
 };