summaryrefslogtreecommitdiff
path: root/source3/rpcclient
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2019-01-14 09:42:17 +0100
committerAndreas Schneider <asn@cryptomilk.org>2019-01-28 10:29:19 +0100
commit328cb7aa9a6b2cc667f2e2de91de492a1c7d007f (patch)
tree452e0f7cbb1505eaa8bb6c2828610550a9d0dc41 /source3/rpcclient
parenteee66741f6e0f3432ebb8a14deb79ce0f18c1d7a (diff)
downloadsamba-328cb7aa9a6b2cc667f2e2de91de492a1c7d007f.tar.gz
s3:rpcclient: Use C99 initializer for cmd_set in cmd_test
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_test.c21
1 files changed, 15 insertions, 6 deletions
diff --git a/source3/rpcclient/cmd_test.c b/source3/rpcclient/cmd_test.c
index 69693a99d07..1b8a27234d1 100644
--- a/source3/rpcclient/cmd_test.c
+++ b/source3/rpcclient/cmd_test.c
@@ -77,10 +77,19 @@ static NTSTATUS cmd_testme(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
struct cmd_set test_commands[] = {
- { "TESTING" },
-
- { "testme", RPC_RTYPE_NTSTATUS, cmd_testme, NULL,
- NULL, NULL, "Sample test", "testme" },
-
- { NULL }
+ {
+ .name = "TESTING",
+ },
+
+ {
+ .name = "testme",
+ .returntype = RPC_RTYPE_NTSTATUS,
+ .ntfn = cmd_testme,
+ .description = "Sample test",
+ .usage = "testme",
+ },
+
+ {
+ .name = NULL,
+ },
};