Make the internal pipe functions static
authorVolker Lendecke <vl@samba.org>
Mon, 13 Oct 2008 17:40:43 +0000 (19:40 +0200)
committerVolker Lendecke <vl@samba.org>
Mon, 13 Oct 2008 18:59:34 +0000 (20:59 +0200)
source3/include/proto.h
source3/rpc_server/srv_pipe_hnd.c

index cb0446889c79863c2e5be9170b764198fbe0332b..40b89a1780b6d6b8dcc527c9c23142f12242c3c0 100644 (file)
@@ -8693,14 +8693,6 @@ pipes_struct *get_first_internal_pipe(void);
 pipes_struct *get_next_internal_pipe(pipes_struct *p);
 void set_pipe_handle_offset(int max_open_files);
 void init_rpc_pipe_hnd(void);
-struct pipes_struct *make_internal_rpc_pipe_p(TALLOC_CTX *mem_ctx,
-                                             const char *pipe_name,
-                                             const char *client_address,
-                                             struct auth_serversupplied_info *server_info,
-                                             uint16_t vuid);
-ssize_t read_from_internal_pipe(struct pipes_struct *p, char *data, size_t n,
-                               bool *is_data_outstanding);
-ssize_t write_to_internal_pipe(struct pipes_struct *p, char *data, size_t n);
 
 bool fsp_is_np(struct files_struct *fsp);
 NTSTATUS np_open(struct smb_request *smb_req, struct connection_struct *conn,
index 1711565c0dca543a221a26796b0371bd619f597d..aee2d2053e87b8ff53f07c7dc44e8a2326395b1a 100644 (file)
@@ -134,11 +134,11 @@ static bool pipe_init_outgoing_data(pipes_struct *p)
  Make an internal namedpipes structure
 ****************************************************************************/
 
-struct pipes_struct *make_internal_rpc_pipe_p(TALLOC_CTX *mem_ctx,
-                                             const char *pipe_name,
-                                             const char *client_address,
-                                             struct auth_serversupplied_info *server_info,
-                                             uint16_t vuid)
+static struct pipes_struct *make_internal_rpc_pipe_p(TALLOC_CTX *mem_ctx,
+                                                    const char *pipe_name,
+                                                    const char *client_address,
+                                                    struct auth_serversupplied_info *server_info,
+                                                    uint16_t vuid)
 {
        pipes_struct *p;
 
@@ -780,7 +780,7 @@ incoming data size = %u\n", (unsigned int)p->in_data.pdu_received_len, (unsigned
  Accepts incoming data on an internal rpc pipe.
 ****************************************************************************/
 
-ssize_t write_to_internal_pipe(struct pipes_struct *p, char *data, size_t n)
+static ssize_t write_to_internal_pipe(struct pipes_struct *p, char *data, size_t n)
 {
        size_t data_left = n;
 
@@ -815,8 +815,8 @@ ssize_t write_to_internal_pipe(struct pipes_struct *p, char *data, size_t n)
  have been prepared into arrays of headers + data stream sections.
 ****************************************************************************/
 
-ssize_t read_from_internal_pipe(struct pipes_struct *p, char *data, size_t n,
-                               bool *is_data_outstanding)
+static ssize_t read_from_internal_pipe(struct pipes_struct *p, char *data, size_t n,
+                                      bool *is_data_outstanding)
 {
        uint32 pdu_remaining = 0;
        ssize_t data_returned = 0;