summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/include/proto.h1
-rw-r--r--source3/rpc_client/cli_pipe.c9
2 files changed, 2 insertions, 8 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h
index aab9b253d8..720ba3f91f 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -7910,7 +7910,6 @@ bool prs_data_blob(prs_struct *prs, DATA_BLOB *blob, TALLOC_CTX *mem_ctx);
/* The following definitions come from rpc_parse/parse_rpc.c */
-const char *cli_get_pipe_name(int pipe_idx);
const char *cli_get_pipe_name_from_iface(TALLOC_CTX *mem_ctx,
struct cli_state *cli,
const struct ndr_syntax_id *interface);
diff --git a/source3/rpc_client/cli_pipe.c b/source3/rpc_client/cli_pipe.c
index 3f27a89fc4..7781ea6921 100644
--- a/source3/rpc_client/cli_pipe.c
+++ b/source3/rpc_client/cli_pipe.c
@@ -78,14 +78,9 @@ static const struct pipe_id_info {
};
/****************************************************************************
- Return the pipe name from the index.
+ Return the pipe name from the interface.
****************************************************************************/
-const char *cli_get_pipe_name(int pipe_idx)
-{
- return &pipe_names[pipe_idx].client_pipe[5];
-}
-
const char *cli_get_pipe_name_from_iface(TALLOC_CTX *mem_ctx,
struct cli_state *cli,
const struct ndr_syntax_id *interface)
@@ -94,7 +89,7 @@ const char *cli_get_pipe_name_from_iface(TALLOC_CTX *mem_ctx,
for (i = 0; pipe_names[i].client_pipe; i++) {
if (ndr_syntax_id_equal(pipe_names[i].abstr_syntax,
interface)) {
- return cli_get_pipe_name(i);
+ return &pipe_names[i].client_pipe[5];
}
}