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

index 289b086718fa6366b75cfd4a87aa5a46be164dc5..236f7530ccc10000b8797e46e9b2cd63f99d0169 100644 (file)
@@ -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,
+       },
 };