From: Andreas Schneider Date: Wed, 9 Jan 2019 15:29:06 +0000 (+0100) Subject: s3:rpcclient: Use C99 initializer for cmd_set in cmd_ntsvcvs X-Git-Tag: ldb-1.6.1~373 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b7b78134228fa96a0ccf2ef310720db6b18b2037;p=thirdparty%2Fsamba.git s3:rpcclient: Use C99 initializer for cmd_set in cmd_ntsvcvs Signed-off-by: Andreas Schneider Reviewed-by: Douglas Bagnall --- diff --git a/source3/rpcclient/cmd_ntsvcs.c b/source3/rpcclient/cmd_ntsvcs.c index 21714ebbbbe..15a2357b429 100644 --- a/source3/rpcclient/cmd_ntsvcs.c +++ b/source3/rpcclient/cmd_ntsvcs.c @@ -282,13 +282,80 @@ static WERROR cmd_ntsvcs_get_dev_list(struct rpc_pipe_client *cli, struct cmd_set ntsvcs_commands[] = { - { "NTSVCS" }, - { "ntsvcs_getversion", RPC_RTYPE_WERROR, NULL, cmd_ntsvcs_get_version, &ndr_table_ntsvcs, NULL, "Query NTSVCS version", "" }, - { "ntsvcs_validatedevinst", RPC_RTYPE_WERROR, NULL, cmd_ntsvcs_validate_dev_inst, &ndr_table_ntsvcs, NULL, "Query NTSVCS device instance", "" }, - { "ntsvcs_hwprofflags", RPC_RTYPE_WERROR, NULL, cmd_ntsvcs_hw_prof_flags, &ndr_table_ntsvcs, NULL, "Query NTSVCS HW prof flags", "" }, - { "ntsvcs_hwprofinfo", RPC_RTYPE_WERROR, NULL, cmd_ntsvcs_get_hw_prof_info, &ndr_table_ntsvcs, NULL, "Query NTSVCS HW prof info", "" }, - { "ntsvcs_getdevregprop", RPC_RTYPE_WERROR, NULL, cmd_ntsvcs_get_dev_reg_prop, &ndr_table_ntsvcs, NULL, "Query NTSVCS device registry property", "" }, - { "ntsvcs_getdevlistsize", RPC_RTYPE_WERROR, NULL, cmd_ntsvcs_get_dev_list_size, &ndr_table_ntsvcs, NULL, "Query NTSVCS device list size", "" }, - { "ntsvcs_getdevlist", RPC_RTYPE_WERROR, NULL, cmd_ntsvcs_get_dev_list, &ndr_table_ntsvcs, NULL, "Query NTSVCS device list", "" }, - { NULL } + { + .name = "NTSVCS", + }, + { + .name = "ntsvcs_getversion", + .returntype = RPC_RTYPE_WERROR, + .ntfn = NULL, + .wfn = cmd_ntsvcs_get_version, + .table = &ndr_table_ntsvcs, + .rpc_pipe = NULL, + .description = "Query NTSVCS version", + .usage = "", + }, + { + .name = "ntsvcs_validatedevinst", + .returntype = RPC_RTYPE_WERROR, + .ntfn = NULL, + .wfn = cmd_ntsvcs_validate_dev_inst, + .table = &ndr_table_ntsvcs, + .rpc_pipe = NULL, + .description = "Query NTSVCS device instance", + .usage = "", + }, + { + .name = "ntsvcs_hwprofflags", + .returntype = RPC_RTYPE_WERROR, + .ntfn = NULL, + .wfn = cmd_ntsvcs_hw_prof_flags, + .table = &ndr_table_ntsvcs, + .rpc_pipe = NULL, + .description = "Query NTSVCS HW prof flags", + .usage = "", + }, + { + .name = "ntsvcs_hwprofinfo", + .returntype = RPC_RTYPE_WERROR, + .ntfn = NULL, + .wfn = cmd_ntsvcs_get_hw_prof_info, + .table = &ndr_table_ntsvcs, + .rpc_pipe = NULL, + .description = "Query NTSVCS HW prof info", + .usage = "", + }, + { + .name = "ntsvcs_getdevregprop", + .returntype = RPC_RTYPE_WERROR, + .ntfn = NULL, + .wfn = cmd_ntsvcs_get_dev_reg_prop, + .table = &ndr_table_ntsvcs, + .rpc_pipe = NULL, + .description = "Query NTSVCS device registry property", + .usage = "", + }, + { + .name = "ntsvcs_getdevlistsize", + .returntype = RPC_RTYPE_WERROR, + .ntfn = NULL, + .wfn = cmd_ntsvcs_get_dev_list_size, + .table = &ndr_table_ntsvcs, + .rpc_pipe = NULL, + .description = "Query NTSVCS device list size", + .usage = "", + }, + { + .name = "ntsvcs_getdevlist", + .returntype = RPC_RTYPE_WERROR, + .ntfn = NULL, + .wfn = cmd_ntsvcs_get_dev_list, + .table = &ndr_table_ntsvcs, + .rpc_pipe = NULL, + .description = "Query NTSVCS device list", + .usage = "", + }, + { + .name = NULL, + }, };