]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
rpcclient: Remove rpcclient_cli_state
authorVolker Lendecke <vl@samba.org>
Sat, 28 Sep 2019 00:32:31 +0000 (17:32 -0700)
committerJeremy Allison <jra@samba.org>
Thu, 3 Oct 2019 16:39:31 +0000 (16:39 +0000)
An unneeded global

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/rpcclient/rpcclient.c
source3/rpcclient/rpcclient.h

index d230ea19d3bd806c2f049365654f75e7c2037661..952b2d3be7af415ac778884d4714edafd1a5ca06 100644 (file)
@@ -53,7 +53,6 @@ static unsigned int timeout = 0;
 static enum dcerpc_transport_t default_transport = NCACN_NP;
 
 struct messaging_context *rpcclient_msg_ctx;
-struct cli_state *rpcclient_cli_state;
 struct netlogon_creds_cli_context *rpcclient_netlogon_creds;
 static const char *rpcclient_netlogon_domain;
 
@@ -1323,7 +1322,6 @@ out_free:
 #endif
 
        /* Load command lists */
-       rpcclient_cli_state = cli;
 
        timeout = 10000;
        cli_set_timeout(cli, timeout);
@@ -1377,7 +1375,6 @@ out_free:
        }
 
 done:
-       rpcclient_cli_state = NULL;
        if (cli != NULL) {
                cli_shutdown(cli);
        }
index 7697d3d0485c9e8c8b79de08af4e1e1841b71813..22ebef0831fb4236f954704d13b64744f3394db4 100644 (file)
@@ -43,7 +43,6 @@ struct cmd_set {
 };
 
 extern struct messaging_context *rpcclient_msg_ctx;
-extern struct cli_state *rpcclient_cli_state;
 extern struct netlogon_creds_cli_context *rpcclient_netlogon_creds;
 
 #endif /* RPCCLIENT_H */