]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
rpc_client: make rpc_pipe_open_tcp_port and rpc_pipe_get_tcp_port static.
authorMichael Adam <obnox@samba.org>
Thu, 22 May 2008 09:16:57 +0000 (11:16 +0200)
committerMichael Adam <obnox@samba.org>
Thu, 22 May 2008 09:30:04 +0000 (11:30 +0200)
Slim the interface...

Michael

source/include/proto.h
source/rpc_client/cli_pipe.c

index 03a7f918c0ad402ac39b9681bacea76fa5c7406e..e30bb327a68bcb0eb3f0f5aa2862357e4aed865f 100644 (file)
@@ -7061,13 +7061,6 @@ NTSTATUS rpccli_kerberos_bind_data(TALLOC_CTX *mem_ctx,
                                   const char *username,
                                   const char *password,
                                   struct cli_pipe_auth_data **presult);
-NTSTATUS rpc_pipe_open_tcp_port(TALLOC_CTX *mem_ctx, const char *host,
-                               uint16_t port,
-                               const struct ndr_syntax_id *abstract_syntax,
-                               struct rpc_pipe_client **presult);
-NTSTATUS rpc_pipe_get_tcp_port(const char *host,
-                              const struct ndr_syntax_id *abstract_syntax,
-                              uint16_t *pport);
 NTSTATUS rpc_pipe_open_tcp(TALLOC_CTX *mem_ctx, const char *host,
                           const struct ndr_syntax_id *abstract_syntax,
                           struct rpc_pipe_client **presult);
index 7a5a62f2d9ffb01ed116e8a8771c1f2920f4e974..2705fd8e4eee4bfb7cd69baf899db2d8de29e376 100644 (file)
@@ -2513,10 +2513,10 @@ static int rpc_pipe_sock_destructor(struct rpc_pipe_client *p)
 /**
  * Create an rpc pipe client struct, connecting to a tcp port.
  */
-NTSTATUS rpc_pipe_open_tcp_port(TALLOC_CTX *mem_ctx, const char *host,
-                               uint16_t port,
-                               const struct ndr_syntax_id *abstract_syntax,
-                               struct rpc_pipe_client **presult)
+static NTSTATUS rpc_pipe_open_tcp_port(TALLOC_CTX *mem_ctx, const char *host,
+                                      uint16_t port,
+                                      const struct ndr_syntax_id *abstract_syntax,
+                                      struct rpc_pipe_client **presult)
 {
        struct rpc_pipe_client *result;
        struct sockaddr_storage addr;
@@ -2569,9 +2569,9 @@ NTSTATUS rpc_pipe_open_tcp_port(TALLOC_CTX *mem_ctx, const char *host,
  * for the ncacn_ip_tcp transport via the endpoint mapper of the
  * target host.
  */
-NTSTATUS rpc_pipe_get_tcp_port(const char *host,
-                              const struct ndr_syntax_id *abstract_syntax,
-                              uint16_t *pport)
+static NTSTATUS rpc_pipe_get_tcp_port(const char *host,
+                                     const struct ndr_syntax_id *abstract_syntax,
+                                     uint16_t *pport)
 {
        NTSTATUS status;
        struct rpc_pipe_client *epm_pipe = NULL;