s3:rpcclient: Use C99 initializer for cmd_set in cmd_dssetup
authorAndreas Schneider <asn@samba.org>
Wed, 9 Jan 2019 14:12:23 +0000 (15:12 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Mon, 28 Jan 2019 09:29:18 +0000 (10:29 +0100)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
source3/rpcclient/cmd_dssetup.c

index 2f7a5699b87fd535f564866f76e610e1132edbdf..611cf6343452c0948dd9acdc15c3a7304d9b6195 100644 (file)
@@ -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,
+       }
 };