summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-05-22 11:16:57 +0200
committerMichael Adam <obnox@samba.org>2008-05-22 11:30:04 +0200
commita8045b1339153175ec294acaa59d0496e90d9e03 (patch)
tree1a837da845fdb3b23a161259dbc2c3604fa2b9e8 /source3
parent5a2206f254328f8afcfa0e4925a7ce342d8874c8 (diff)
downloadsamba-a8045b1339153175ec294acaa59d0496e90d9e03.tar.gz
samba-a8045b1339153175ec294acaa59d0496e90d9e03.tar.bz2
samba-a8045b1339153175ec294acaa59d0496e90d9e03.zip
rpc_client: make rpc_pipe_open_tcp_port and rpc_pipe_get_tcp_port static.
Slim the interface... Michael (This used to be commit 9971118c23900d81e885a013e738a67df790c90c)
Diffstat (limited to 'source3')
-rw-r--r--source3/include/proto.h7
-rw-r--r--source3/rpc_client/cli_pipe.c14
2 files changed, 7 insertions, 14 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h
index 03a7f918c0..e30bb327a6 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -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);
diff --git a/source3/rpc_client/cli_pipe.c b/source3/rpc_client/cli_pipe.c
index 7a5a62f2d9..2705fd8e4e 100644
--- a/source3/rpc_client/cli_pipe.c
+++ b/source3/rpc_client/cli_pipe.c
@@ -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;