From: Andreas Schneider Date: Mon, 14 Jan 2019 08:48:06 +0000 (+0100) Subject: s3:rpcclient: Use C99 initializer for cmd_set in cmd_epmapper X-Git-Tag: ldb-1.6.1~365 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5701586d53109cfd84cfeebf6cfcaf162a19320c;p=thirdparty%2Fsamba.git s3:rpcclient: Use C99 initializer for cmd_set in cmd_epmapper Signed-off-by: Andreas Schneider Reviewed-by: Douglas Bagnall --- diff --git a/source3/rpcclient/cmd_epmapper.c b/source3/rpcclient/cmd_epmapper.c index 289b086718f..236f7530ccc 100644 --- a/source3/rpcclient/cmd_epmapper.c +++ b/source3/rpcclient/cmd_epmapper.c @@ -240,11 +240,31 @@ static NTSTATUS cmd_epmapper_lookup(struct rpc_pipe_client *p, struct cmd_set epmapper_commands[] = { - { "EPMAPPER" }, - - { "epmmap", RPC_RTYPE_NTSTATUS, cmd_epmapper_map, NULL, - &ndr_table_epmapper, NULL, "Map a binding", "" }, - { "epmlookup", RPC_RTYPE_NTSTATUS, cmd_epmapper_lookup, NULL, - &ndr_table_epmapper, NULL, "Lookup bindings", "" }, - { NULL } + { + .name = "EPMAPPER", + }, + + { + .name = "epmmap", + .returntype = RPC_RTYPE_NTSTATUS, + .ntfn = cmd_epmapper_map, + .wfn = NULL, + .table = &ndr_table_epmapper, + .rpc_pipe = NULL, + .description = "Map a binding", + .usage = "", + }, + { + .name = "epmlookup", + .returntype = RPC_RTYPE_NTSTATUS, + .ntfn = cmd_epmapper_lookup, + .wfn = NULL, + .table = &ndr_table_epmapper, + .rpc_pipe = NULL, + .description = "Lookup bindings", + .usage = "", + }, + { + .name = NULL, + }, };