From: Andreas Schneider Date: Wed, 9 Jan 2019 15:21:34 +0000 (+0100) Subject: s3:rpcclient: Use C99 initializer for cmd_set in cmd_iremotewinspool X-Git-Tag: ldb-1.6.1~374 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2069372e1ea47ce14a6e98fdcf3397abc692a4e8;p=thirdparty%2Fsamba.git s3:rpcclient: Use C99 initializer for cmd_set in cmd_iremotewinspool Signed-off-by: Andreas Schneider Reviewed-by: Douglas Bagnall --- diff --git a/source3/rpcclient/cmd_iremotewinspool.c b/source3/rpcclient/cmd_iremotewinspool.c index 7f0cecfaf01..5a8096b6d97 100644 --- a/source3/rpcclient/cmd_iremotewinspool.c +++ b/source3/rpcclient/cmd_iremotewinspool.c @@ -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, + }, };