summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-10-13 19:40:43 +0200
committerVolker Lendecke <vl@samba.org>2008-10-13 20:59:34 +0200
commit76dfca1569f93a2b1b49244c4ae2e6a9834034f2 (patch)
tree71e511080c5a118f836bf6393e1a19e18695d289
parenta781b78417b6d7b875230dd2edcb932445aa4197 (diff)
downloadsamba-76dfca1569f93a2b1b49244c4ae2e6a9834034f2.tar.gz
samba-76dfca1569f93a2b1b49244c4ae2e6a9834034f2.tar.bz2
samba-76dfca1569f93a2b1b49244c4ae2e6a9834034f2.zip
Make the internal pipe functions static
-rw-r--r--source3/include/proto.h8
-rw-r--r--source3/rpc_server/srv_pipe_hnd.c16
2 files changed, 8 insertions, 16 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h
index cb0446889c..40b89a1780 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -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,
diff --git a/source3/rpc_server/srv_pipe_hnd.c b/source3/rpc_server/srv_pipe_hnd.c
index 1711565c0d..aee2d2053e 100644
--- a/source3/rpc_server/srv_pipe_hnd.c
+++ b/source3/rpc_server/srv_pipe_hnd.c
@@ -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;