From: Andreas Schneider Date: Wed, 9 Jan 2019 14:12:23 +0000 (+0100) Subject: s3:rpcclient: Use C99 initializer for cmd_set in cmd_dssetup X-Git-Tag: ldb-1.6.1~378 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8cb851ffb9eb254ed63c35889c98afd6dcec9f7a;p=thirdparty%2Fsamba.git s3:rpcclient: Use C99 initializer for cmd_set in cmd_dssetup Signed-off-by: Andreas Schneider Reviewed-by: Douglas Bagnall --- diff --git a/source3/rpcclient/cmd_dssetup.c b/source3/rpcclient/cmd_dssetup.c index 2f7a5699b87..611cf634345 100644 --- a/source3/rpcclient/cmd_dssetup.c +++ b/source3/rpcclient/cmd_dssetup.c @@ -63,9 +63,22 @@ static WERROR cmd_ds_dsrole_getprimarydominfo(struct rpc_pipe_client *cli, struct cmd_set ds_commands[] = { - { "LSARPC-DS" }, - - { "dsroledominfo", RPC_RTYPE_WERROR, NULL, cmd_ds_dsrole_getprimarydominfo, &ndr_table_dssetup, NULL, "Get Primary Domain Information", "" }, - -{ NULL } + { + .name = "LSARPC-DS" + }, + + { + .name = "dsroledominfo", + .returntype = RPC_RTYPE_WERROR, + .ntfn = NULL, + .wfn = cmd_ds_dsrole_getprimarydominfo, + .table = &ndr_table_dssetup, + .rpc_pipe = NULL, + .description = "Get Primary Domain Information", + .usage = "" + }, + + { + .name = NULL, + } };