summaryrefslogtreecommitdiff
path: root/source3/rpcclient
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2019-01-09 15:12:23 +0100
committerAndreas Schneider <asn@cryptomilk.org>2019-01-28 10:29:18 +0100
commit8cb851ffb9eb254ed63c35889c98afd6dcec9f7a (patch)
treecfd7577473dbe69edf9f35f352e8a6769ec45809 /source3/rpcclient
parent17d166e6bd850d1e0ad0a0a00e7f3f7825ef1701 (diff)
downloadsamba-8cb851ffb9eb254ed63c35889c98afd6dcec9f7a.tar.gz
s3:rpcclient: Use C99 initializer for cmd_set in cmd_dssetup
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Diffstat (limited to 'source3/rpcclient')
-rw-r--r--source3/rpcclient/cmd_dssetup.c23
1 files changed, 18 insertions, 5 deletions
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,
+ }
};