summaryrefslogtreecommitdiff
path: root/source3/rpc_client
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-01-22 11:36:16 +0100
committerVolker Lendecke <vl@samba.org>2009-01-22 11:38:00 +0100
commit3662c2b0f648d1719cbb26f9abfc61dbe03f8a2a (patch)
tree3ca3b0502c8ac064cc22e3821c22e5c35d5d9a13 /source3/rpc_client
parent63e23a7d648cb608a9834b4397c0aed765a1d459 (diff)
downloadsamba-3662c2b0f648d1719cbb26f9abfc61dbe03f8a2a.tar.gz
samba-3662c2b0f648d1719cbb26f9abfc61dbe03f8a2a.tar.bz2
samba-3662c2b0f648d1719cbb26f9abfc61dbe03f8a2a.zip
cli_get_pipe_name_from_iface does not need the cli_state
I leave the TALLOC_CTX in, we might have to allocate it in the future
Diffstat (limited to 'source3/rpc_client')
-rw-r--r--source3/rpc_client/cli_pipe.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source3/rpc_client/cli_pipe.c b/source3/rpc_client/cli_pipe.c
index 6e2ffc933b..bf19160436 100644
--- a/source3/rpc_client/cli_pipe.c
+++ b/source3/rpc_client/cli_pipe.c
@@ -82,7 +82,6 @@ static const struct pipe_id_info {
****************************************************************************/
const char *cli_get_pipe_name_from_iface(TALLOC_CTX *mem_ctx,
- struct cli_state *cli,
const struct ndr_syntax_id *interface)
{
int i;
@@ -3594,7 +3593,7 @@ static NTSTATUS rpc_pipe_open_np(struct cli_state *cli,
result->transport_type = NCACN_NP;
result->trans.np.pipe_name = cli_get_pipe_name_from_iface(
- result, cli, abstract_syntax);
+ result, abstract_syntax);
if (result->trans.np.pipe_name == NULL) {
DEBUG(1, ("Could not find pipe for interface\n"));
TALLOC_FREE(result);
@@ -3713,7 +3712,7 @@ NTSTATUS cli_rpc_pipe_open_noauth(struct cli_state *cli,
}
DEBUG(lvl, ("cli_rpc_pipe_open_noauth: rpc_pipe_bind for pipe "
"%s failed with error %s\n",
- cli_get_pipe_name_from_iface(debug_ctx(), cli,
+ cli_get_pipe_name_from_iface(debug_ctx(),
interface),
nt_errstr(status) ));
TALLOC_FREE(result);