]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
rpcclient: Avoid a few implicit NULL assignments
authorVolker Lendecke <vl@samba.org>
Sat, 6 Feb 2021 20:35:56 +0000 (21:35 +0100)
committerJeremy Allison <jra@samba.org>
Tue, 16 Mar 2021 17:09:32 +0000 (17:09 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/rpcclient/rpcclient.c

index 6747aaec147094e0e48e749b5927fa216fbd1cb1..0c2594780c9a2ba36b28ecb739526b476f9164c6 100644 (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              = "",
        },