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",
.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 <pipe>",
.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 = "",
},