From: Andreas Schneider Date: Tue, 8 Jan 2019 16:57:26 +0000 (+0100) Subject: s3:rpcclient: Use C99 initializer for cmd_set in cmd_dfs X-Git-Tag: ldb-1.6.1~383 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5b298d30c84348ff1fa6420861205985e32e813d;p=thirdparty%2Fsamba.git s3:rpcclient: Use C99 initializer for cmd_set in cmd_dfs Signed-off-by: Andreas Schneider Reviewed-by: Douglas Bagnall --- diff --git a/source3/rpcclient/cmd_dfs.c b/source3/rpcclient/cmd_dfs.c index 43d17b34608..1bc4d5c93c0 100644 --- a/source3/rpcclient/cmd_dfs.c +++ b/source3/rpcclient/cmd_dfs.c @@ -329,14 +329,68 @@ static WERROR cmd_dfs_getinfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct cmd_set dfs_commands[] = { - { "DFS" }, - - { "dfsversion", RPC_RTYPE_WERROR, NULL, cmd_dfs_version, &ndr_table_netdfs, NULL, "Query DFS support", "" }, - { "dfsadd", RPC_RTYPE_WERROR, NULL, cmd_dfs_add, &ndr_table_netdfs, NULL, "Add a DFS share", "" }, - { "dfsremove", RPC_RTYPE_WERROR, NULL, cmd_dfs_remove, &ndr_table_netdfs, NULL, "Remove a DFS share", "" }, - { "dfsgetinfo", RPC_RTYPE_WERROR, NULL, cmd_dfs_getinfo, &ndr_table_netdfs, NULL, "Query DFS share info", "" }, - { "dfsenum", RPC_RTYPE_WERROR, NULL, cmd_dfs_enum, &ndr_table_netdfs, NULL, "Enumerate dfs shares", "" }, - { "dfsenumex", RPC_RTYPE_WERROR, NULL, cmd_dfs_enumex, &ndr_table_netdfs, NULL, "Enumerate dfs shares", "" }, - - { NULL } + { .name = "DFS" }, + + { + .name = "dfsversion", + .returntype = RPC_RTYPE_WERROR, + .ntfn = NULL, + .wfn = cmd_dfs_version, + .table = &ndr_table_netdfs, + .rpc_pipe = NULL, + .description = "Query DFS support", + .usage = "", + }, + { + .name = "dfsadd", + .returntype = RPC_RTYPE_WERROR, + .ntfn = NULL, + .wfn = cmd_dfs_add, + .table = &ndr_table_netdfs, + .rpc_pipe = NULL, + .description = "Add a DFS share", + .usage = "", + }, + { + .name = "dfsremove", + .returntype = RPC_RTYPE_WERROR, + .ntfn = NULL, + .wfn = cmd_dfs_remove, + .table = &ndr_table_netdfs, + .rpc_pipe = NULL, + .description = "Remove a DFS share", + .usage = "", + }, + { + .name = "dfsgetinfo", + .returntype = RPC_RTYPE_WERROR, + .ntfn = NULL, + .wfn = cmd_dfs_getinfo, + .table = &ndr_table_netdfs, + .rpc_pipe = NULL, + .description = "Query DFS share info", + .usage = "", + }, + { + .name = "dfsenum", + .returntype = RPC_RTYPE_WERROR, + .ntfn = NULL, + .wfn = cmd_dfs_enum, + .table = &ndr_table_netdfs, + .rpc_pipe = NULL, + .description = "Enumerate dfs shares", + .usage = "", + }, + { + .name = "dfsenumex", + .returntype = RPC_RTYPE_WERROR, + .ntfn = NULL, + .wfn = cmd_dfs_enumex, + .table = &ndr_table_netdfs, + .rpc_pipe = NULL, + .description = "Enumerate dfs shares", + .usage = "", + }, + + { .name = NULL } };