]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
rpc_client: Make rpc_pipe_open_tcp() static
authorVolker Lendecke <vl@samba.org>
Tue, 3 Aug 2021 10:13:13 +0000 (12:13 +0200)
committerJeremy Allison <jra@samba.org>
Tue, 24 Aug 2021 17:32:29 +0000 (17:32 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/rpc_client/cli_pipe.c
source3/rpc_client/cli_pipe.h

index 2ec672c133924cef5a031a0c9dd2a6d594bc643d..871ec09ad6a7e8687d7d1cfaa38c016663e57ecf 100644 (file)
@@ -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;
index d7fed6bed8870ffbaa12ec87e19c9df556f57328..7547ea095e61ad7a0fffe551d571eccca292bd8f 100644 (file)
@@ -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);