From: Volker Lendecke Date: Sat, 6 Feb 2021 20:35:56 +0000 (+0100) Subject: rpcclient: Avoid a few implicit NULL assignments X-Git-Tag: tevent-0.11.0~1531 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b546b87b78bddae0fd8b3132e678fcece0b2f71d;p=thirdparty%2Fsamba.git rpcclient: Avoid a few implicit NULL assignments Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/source3/rpcclient/rpcclient.c b/source3/rpcclient/rpcclient.c index 6747aaec147..0c2594780c9 100644 --- a/source3/rpcclient/rpcclient.c +++ b/source3/rpcclient/rpcclient.c @@ -542,9 +542,6 @@ static struct cmd_set rpcclient_commands[] = { .name = "help", .returntype = RPC_RTYPE_NTSTATUS, .ntfn = cmd_help, - .wfn = NULL, - .table = NULL, - .rpc_pipe = NULL, .description = "Get help on commands", .usage = "[command]", }, @@ -552,9 +549,6 @@ static struct cmd_set rpcclient_commands[] = { .name = "?", .returntype = RPC_RTYPE_NTSTATUS, .ntfn = cmd_help, - .wfn = NULL, - .table = NULL, - .rpc_pipe = NULL, .description = "Get help on commands", .usage = "[command]", }, @@ -562,9 +556,6 @@ static struct cmd_set rpcclient_commands[] = { .name = "debuglevel", .returntype = RPC_RTYPE_NTSTATUS, .ntfn = cmd_debuglevel, - .wfn = NULL, - .table = NULL, - .rpc_pipe = NULL, .description = "Set debug level", .usage = "level", }, @@ -572,9 +563,6 @@ static struct cmd_set rpcclient_commands[] = { .name = "debug", .returntype = RPC_RTYPE_NTSTATUS, .ntfn = cmd_debuglevel, - .wfn = NULL, - .table = NULL, - .rpc_pipe = NULL, .description = "Set debug level", .usage = "level", }, @@ -582,9 +570,6 @@ static struct cmd_set rpcclient_commands[] = { .name = "list", .returntype = RPC_RTYPE_NTSTATUS, .ntfn = cmd_listcommands, - .wfn = NULL, - .table = NULL, - .rpc_pipe = NULL, .description = "List available commands on ", .usage = "pipe", }, @@ -592,9 +577,6 @@ static struct cmd_set rpcclient_commands[] = { .name = "exit", .returntype = RPC_RTYPE_NTSTATUS, .ntfn = cmd_quit, - .wfn = NULL, - .table = NULL, - .rpc_pipe = NULL, .description = "Exit program", .usage = "", }, @@ -602,9 +584,6 @@ static struct cmd_set rpcclient_commands[] = { .name = "quit", .returntype = RPC_RTYPE_NTSTATUS, .ntfn = cmd_quit, - .wfn = NULL, - .table = NULL, - .rpc_pipe = NULL, .description = "Exit program", .usage = "", }, @@ -612,9 +591,6 @@ static struct cmd_set rpcclient_commands[] = { .name = "sign", .returntype = RPC_RTYPE_NTSTATUS, .ntfn = cmd_sign, - .wfn = NULL, - .table = NULL, - .rpc_pipe = NULL, .description = "Force RPC pipe connections to be signed", .usage = "", }, @@ -622,9 +598,6 @@ static struct cmd_set rpcclient_commands[] = { .name = "seal", .returntype = RPC_RTYPE_NTSTATUS, .ntfn = cmd_seal, - .wfn = NULL, - .table = NULL, - .rpc_pipe = NULL, .description = "Force RPC pipe connections to be sealed", .usage = "", }, @@ -632,9 +605,6 @@ static struct cmd_set rpcclient_commands[] = { .name = "packet", .returntype = RPC_RTYPE_NTSTATUS, .ntfn = cmd_packet, - .wfn = NULL, - .table = NULL, - .rpc_pipe = NULL, .description = "Force RPC pipe connections with packet authentication level", .usage = "", }, @@ -642,9 +612,6 @@ static struct cmd_set rpcclient_commands[] = { .name = "schannel", .returntype = RPC_RTYPE_NTSTATUS, .ntfn = cmd_schannel, - .wfn = NULL, - .table = NULL, - .rpc_pipe = NULL, .description = "Force RPC pipe connections to be sealed with 'schannel'. " "Assumes valid machine account to this domain controller.", .usage = "", @@ -653,9 +620,6 @@ static struct cmd_set rpcclient_commands[] = { .name = "schannelsign", .returntype = RPC_RTYPE_NTSTATUS, .ntfn = cmd_schannel_sign, - .wfn = NULL, - .table = NULL, - .rpc_pipe = NULL, .description = "Force RPC pipe connections to be signed (not sealed) with " "'schannel'. Assumes valid machine account to this domain " "controller.", @@ -665,9 +629,6 @@ static struct cmd_set rpcclient_commands[] = { .name = "timeout", .returntype = RPC_RTYPE_NTSTATUS, .ntfn = cmd_timeout, - .wfn = NULL, - .table = NULL, - .rpc_pipe = NULL, .description = "Set timeout (in milliseconds) for RPC operations", .usage = "", }, @@ -675,9 +636,6 @@ static struct cmd_set rpcclient_commands[] = { .name = "transport", .returntype = RPC_RTYPE_NTSTATUS, .ntfn = cmd_choose_transport, - .wfn = NULL, - .table = NULL, - .rpc_pipe = NULL, .description = "Choose ncacn transport for RPC operations", .usage = "", }, @@ -685,9 +643,6 @@ static struct cmd_set rpcclient_commands[] = { .name = "none", .returntype = RPC_RTYPE_NTSTATUS, .ntfn = cmd_none, - .wfn = NULL, - .table = NULL, - .rpc_pipe = NULL, .description = "Force RPC pipe connections to have no special properties", .usage = "", },