Author: abartlet
Date: 2007-07-10 11:56:01 +0000 (Tue, 10 Jul 2007)
New Revision: 23812

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=23812

Log:
Remove more code found as dead by the find_static script, and make
other functions just static.

Andrew Bartlett

Modified:
   branches/SAMBA_4_0/source/librpc/rpc/dcerpc_sock.c


Changeset:
Modified: branches/SAMBA_4_0/source/librpc/rpc/dcerpc_sock.c
===================================================================
--- branches/SAMBA_4_0/source/librpc/rpc/dcerpc_sock.c  2007-07-10 11:54:49 UTC 
(rev 23811)
+++ branches/SAMBA_4_0/source/librpc/rpc/dcerpc_sock.c  2007-07-10 11:56:01 UTC 
(rev 23812)
@@ -300,7 +300,7 @@
 }
 
 
-struct composite_context *dcerpc_pipe_open_socket_send(TALLOC_CTX *mem_ctx,
+static struct composite_context *dcerpc_pipe_open_socket_send(TALLOC_CTX 
*mem_ctx,
                                                       struct dcerpc_connection 
*cn,
                                                       struct socket_address 
*server,
                                                       const char 
*target_hostname,
@@ -337,7 +337,7 @@
 }
 
 
-NTSTATUS dcerpc_pipe_open_socket_recv(struct composite_context *c)
+static NTSTATUS dcerpc_pipe_open_socket_recv(struct composite_context *c)
 {
        NTSTATUS status = composite_wait(c);
 
@@ -345,21 +345,6 @@
        return status;
 }
 
-/* 
-   open a rpc connection using the generic socket library
-*/
-NTSTATUS dcerpc_pipe_open_socket(struct dcerpc_connection *conn,
-                                struct socket_address *server,
-                                const char *target_hostname,
-                                enum dcerpc_transport_t transport)
-{
-       struct composite_context *c;
-       
-       c = dcerpc_pipe_open_socket_send(conn, conn, server, target_hostname, 
transport);
-       return dcerpc_pipe_open_socket_recv(c);
-}
-
-
 struct pipe_tcp_state {
        const char *server;
        const char *target_hostname;
@@ -510,20 +495,6 @@
 }
 
 
-/*
-  Open rpc pipe on tcp/ip transport - sync version
-*/
-NTSTATUS dcerpc_pipe_open_tcp(struct dcerpc_connection *conn, const char 
*server,
-                             const char *target_hostname,
-                             uint32_t port)
-{
-       struct composite_context *c;
-
-       c = dcerpc_pipe_open_tcp_send(conn, server, target_hostname, port);
-       return dcerpc_pipe_open_tcp_recv(c);
-}
-
-
 struct pipe_unix_state {
        const char *path;
        struct socket_address *srvaddr;
@@ -535,7 +506,7 @@
   Stage 2 of dcerpc_pipe_open_unix_stream_send: receive result of pipe open
   request on unix socket.
 */
-void continue_unix_open_socket(struct composite_context *ctx)
+static void continue_unix_open_socket(struct composite_context *ctx)
 {
        struct composite_context *c = talloc_get_type(ctx->async.private_data,
                                                      struct composite_context);
@@ -598,16 +569,6 @@
 }
 
 
-/*
-  Open a rpc pipe on a unix socket - sync version
-*/
-NTSTATUS dcerpc_pipe_open_unix_stream(struct dcerpc_connection *conn, const 
char *path)
-{
-       struct composite_context *c = dcerpc_pipe_open_unix_stream_send(conn, 
path);
-       return dcerpc_pipe_open_unix_stream_recv(c);
-}
-
-
 struct pipe_np_state {
        char *full_path;
        struct socket_address *srvaddr;
@@ -618,7 +579,7 @@
 /*
   Stage 2 of dcerpc_pipe_open_pipe_send: receive socket open request
 */
-void continue_np_open_socket(struct composite_context *ctx)
+static void continue_np_open_socket(struct composite_context *ctx)
 {
        struct composite_context *c = talloc_get_type(ctx->async.private_data,
                                                      struct composite_context);

Reply via email to