1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-25 17:57:42 +03:00

rpcclient: Avoid a few implicit NULL assignments

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Volker Lendecke 2021-02-06 21:35:56 +01:00 committed by Jeremy Allison
parent 386f62fb57
commit b546b87b78

View File

@ -542,9 +542,6 @@ static struct cmd_set rpcclient_commands[] = {
.name = "help", .name = "help",
.returntype = RPC_RTYPE_NTSTATUS, .returntype = RPC_RTYPE_NTSTATUS,
.ntfn = cmd_help, .ntfn = cmd_help,
.wfn = NULL,
.table = NULL,
.rpc_pipe = NULL,
.description = "Get help on commands", .description = "Get help on commands",
.usage = "[command]", .usage = "[command]",
}, },
@ -552,9 +549,6 @@ static struct cmd_set rpcclient_commands[] = {
.name = "?", .name = "?",
.returntype = RPC_RTYPE_NTSTATUS, .returntype = RPC_RTYPE_NTSTATUS,
.ntfn = cmd_help, .ntfn = cmd_help,
.wfn = NULL,
.table = NULL,
.rpc_pipe = NULL,
.description = "Get help on commands", .description = "Get help on commands",
.usage = "[command]", .usage = "[command]",
}, },
@ -562,9 +556,6 @@ static struct cmd_set rpcclient_commands[] = {
.name = "debuglevel", .name = "debuglevel",
.returntype = RPC_RTYPE_NTSTATUS, .returntype = RPC_RTYPE_NTSTATUS,
.ntfn = cmd_debuglevel, .ntfn = cmd_debuglevel,
.wfn = NULL,
.table = NULL,
.rpc_pipe = NULL,
.description = "Set debug level", .description = "Set debug level",
.usage = "level", .usage = "level",
}, },
@ -572,9 +563,6 @@ static struct cmd_set rpcclient_commands[] = {
.name = "debug", .name = "debug",
.returntype = RPC_RTYPE_NTSTATUS, .returntype = RPC_RTYPE_NTSTATUS,
.ntfn = cmd_debuglevel, .ntfn = cmd_debuglevel,
.wfn = NULL,
.table = NULL,
.rpc_pipe = NULL,
.description = "Set debug level", .description = "Set debug level",
.usage = "level", .usage = "level",
}, },
@ -582,9 +570,6 @@ static struct cmd_set rpcclient_commands[] = {
.name = "list", .name = "list",
.returntype = RPC_RTYPE_NTSTATUS, .returntype = RPC_RTYPE_NTSTATUS,
.ntfn = cmd_listcommands, .ntfn = cmd_listcommands,
.wfn = NULL,
.table = NULL,
.rpc_pipe = NULL,
.description = "List available commands on <pipe>", .description = "List available commands on <pipe>",
.usage = "pipe", .usage = "pipe",
}, },
@ -592,9 +577,6 @@ static struct cmd_set rpcclient_commands[] = {
.name = "exit", .name = "exit",
.returntype = RPC_RTYPE_NTSTATUS, .returntype = RPC_RTYPE_NTSTATUS,
.ntfn = cmd_quit, .ntfn = cmd_quit,
.wfn = NULL,
.table = NULL,
.rpc_pipe = NULL,
.description = "Exit program", .description = "Exit program",
.usage = "", .usage = "",
}, },
@ -602,9 +584,6 @@ static struct cmd_set rpcclient_commands[] = {
.name = "quit", .name = "quit",
.returntype = RPC_RTYPE_NTSTATUS, .returntype = RPC_RTYPE_NTSTATUS,
.ntfn = cmd_quit, .ntfn = cmd_quit,
.wfn = NULL,
.table = NULL,
.rpc_pipe = NULL,
.description = "Exit program", .description = "Exit program",
.usage = "", .usage = "",
}, },
@ -612,9 +591,6 @@ static struct cmd_set rpcclient_commands[] = {
.name = "sign", .name = "sign",
.returntype = RPC_RTYPE_NTSTATUS, .returntype = RPC_RTYPE_NTSTATUS,
.ntfn = cmd_sign, .ntfn = cmd_sign,
.wfn = NULL,
.table = NULL,
.rpc_pipe = NULL,
.description = "Force RPC pipe connections to be signed", .description = "Force RPC pipe connections to be signed",
.usage = "", .usage = "",
}, },
@ -622,9 +598,6 @@ static struct cmd_set rpcclient_commands[] = {
.name = "seal", .name = "seal",
.returntype = RPC_RTYPE_NTSTATUS, .returntype = RPC_RTYPE_NTSTATUS,
.ntfn = cmd_seal, .ntfn = cmd_seal,
.wfn = NULL,
.table = NULL,
.rpc_pipe = NULL,
.description = "Force RPC pipe connections to be sealed", .description = "Force RPC pipe connections to be sealed",
.usage = "", .usage = "",
}, },
@ -632,9 +605,6 @@ static struct cmd_set rpcclient_commands[] = {
.name = "packet", .name = "packet",
.returntype = RPC_RTYPE_NTSTATUS, .returntype = RPC_RTYPE_NTSTATUS,
.ntfn = cmd_packet, .ntfn = cmd_packet,
.wfn = NULL,
.table = NULL,
.rpc_pipe = NULL,
.description = "Force RPC pipe connections with packet authentication level", .description = "Force RPC pipe connections with packet authentication level",
.usage = "", .usage = "",
}, },
@ -642,9 +612,6 @@ static struct cmd_set rpcclient_commands[] = {
.name = "schannel", .name = "schannel",
.returntype = RPC_RTYPE_NTSTATUS, .returntype = RPC_RTYPE_NTSTATUS,
.ntfn = cmd_schannel, .ntfn = cmd_schannel,
.wfn = NULL,
.table = NULL,
.rpc_pipe = NULL,
.description = "Force RPC pipe connections to be sealed with 'schannel'. " .description = "Force RPC pipe connections to be sealed with 'schannel'. "
"Assumes valid machine account to this domain controller.", "Assumes valid machine account to this domain controller.",
.usage = "", .usage = "",
@ -653,9 +620,6 @@ static struct cmd_set rpcclient_commands[] = {
.name = "schannelsign", .name = "schannelsign",
.returntype = RPC_RTYPE_NTSTATUS, .returntype = RPC_RTYPE_NTSTATUS,
.ntfn = cmd_schannel_sign, .ntfn = cmd_schannel_sign,
.wfn = NULL,
.table = NULL,
.rpc_pipe = NULL,
.description = "Force RPC pipe connections to be signed (not sealed) with " .description = "Force RPC pipe connections to be signed (not sealed) with "
"'schannel'. Assumes valid machine account to this domain " "'schannel'. Assumes valid machine account to this domain "
"controller.", "controller.",
@ -665,9 +629,6 @@ static struct cmd_set rpcclient_commands[] = {
.name = "timeout", .name = "timeout",
.returntype = RPC_RTYPE_NTSTATUS, .returntype = RPC_RTYPE_NTSTATUS,
.ntfn = cmd_timeout, .ntfn = cmd_timeout,
.wfn = NULL,
.table = NULL,
.rpc_pipe = NULL,
.description = "Set timeout (in milliseconds) for RPC operations", .description = "Set timeout (in milliseconds) for RPC operations",
.usage = "", .usage = "",
}, },
@ -675,9 +636,6 @@ static struct cmd_set rpcclient_commands[] = {
.name = "transport", .name = "transport",
.returntype = RPC_RTYPE_NTSTATUS, .returntype = RPC_RTYPE_NTSTATUS,
.ntfn = cmd_choose_transport, .ntfn = cmd_choose_transport,
.wfn = NULL,
.table = NULL,
.rpc_pipe = NULL,
.description = "Choose ncacn transport for RPC operations", .description = "Choose ncacn transport for RPC operations",
.usage = "", .usage = "",
}, },
@ -685,9 +643,6 @@ static struct cmd_set rpcclient_commands[] = {
.name = "none", .name = "none",
.returntype = RPC_RTYPE_NTSTATUS, .returntype = RPC_RTYPE_NTSTATUS,
.ntfn = cmd_none, .ntfn = cmd_none,
.wfn = NULL,
.table = NULL,
.rpc_pipe = NULL,
.description = "Force RPC pipe connections to have no special properties", .description = "Force RPC pipe connections to have no special properties",
.usage = "", .usage = "",
}, },