From: Volker Lendecke Date: Tue, 3 Aug 2021 10:13:13 +0000 (+0200) Subject: rpc_client: Make rpc_pipe_open_tcp() static X-Git-Tag: ldb-2.5.0~852 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=730e2903b2f967dbc30f84692c8e3bf83d9453e4;p=thirdparty%2Fsamba.git rpc_client: Make rpc_pipe_open_tcp() static Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/source3/rpc_client/cli_pipe.c b/source3/rpc_client/cli_pipe.c index 2ec672c1339..871ec09ad6a 100644 --- a/source3/rpc_client/cli_pipe.c +++ b/source3/rpc_client/cli_pipe.c @@ -2872,10 +2872,12 @@ done: * The port is determined by asking the endpoint mapper on the given * host. */ -NTSTATUS rpc_pipe_open_tcp(TALLOC_CTX *mem_ctx, const char *host, - const struct sockaddr_storage *addr, - const struct ndr_interface_table *table, - struct rpc_pipe_client **presult) +static NTSTATUS rpc_pipe_open_tcp( + TALLOC_CTX *mem_ctx, + const char *host, + const struct sockaddr_storage *addr, + const struct ndr_interface_table *table, + struct rpc_pipe_client **presult) { NTSTATUS status; uint16_t port = 0; diff --git a/source3/rpc_client/cli_pipe.h b/source3/rpc_client/cli_pipe.h index d7fed6bed88..7547ea095e6 100644 --- a/source3/rpc_client/cli_pipe.h +++ b/source3/rpc_client/cli_pipe.h @@ -49,12 +49,6 @@ NTSTATUS rpccli_ncalrpc_bind_data(TALLOC_CTX *mem_ctx, NTSTATUS rpccli_anon_bind_data(TALLOC_CTX *mem_ctx, struct pipe_auth_data **presult); -NTSTATUS rpc_pipe_open_tcp(TALLOC_CTX *mem_ctx, - const char *host, - const struct sockaddr_storage *ss_addr, - const struct ndr_interface_table *table, - struct rpc_pipe_client **presult); - NTSTATUS rpc_pipe_open_ncalrpc(TALLOC_CTX *mem_ctx, const struct ndr_interface_table *table, struct rpc_pipe_client **presult);