From: Simo Sorce Date: Mon, 7 Jun 2010 19:18:31 +0000 (-0400) Subject: s3-rpc_server: Make pipe destructor public. X-Git-Url: http://git.samba.org/?p=kamenim%2Fsamba.git;a=commitdiff_plain;h=2ef693e3c83fa0ce298ef8b592d7d4c4ec3dd845 s3-rpc_server: Make pipe destructor public. Signed-off-by: Andreas Schneider --- diff --git a/source3/include/proto.h b/source3/include/proto.h index b19f985a85..d23b18c1f3 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -4345,6 +4345,7 @@ bool is_known_pipename(const char *cli_filename, struct ndr_syntax_id *syntax); struct pipes_struct *get_first_internal_pipe(void); struct pipes_struct *get_next_internal_pipe(struct pipes_struct *p); bool check_open_pipes(void); +int close_internal_rpc_pipe_hnd(struct pipes_struct *p); bool fsp_is_np(struct files_struct *fsp); struct tsocket_address; diff --git a/source3/rpc_server/rpc_ncacn_np_internal.c b/source3/rpc_server/rpc_ncacn_np_internal.c index 0cbbf50003..8253f65bb7 100644 --- a/source3/rpc_server/rpc_ncacn_np_internal.c +++ b/source3/rpc_server/rpc_ncacn_np_internal.c @@ -40,8 +40,6 @@ static struct pipes_struct *InternalPipes; * system _anyway_. so that's the next step... */ -static int close_internal_rpc_pipe_hnd(struct pipes_struct *p); - /**************************************************************************** Internal Pipe iterator functions. ****************************************************************************/ @@ -86,7 +84,7 @@ bool check_open_pipes(void) Close an rpc pipe. ****************************************************************************/ -static int close_internal_rpc_pipe_hnd(struct pipes_struct *p) +int close_internal_rpc_pipe_hnd(struct pipes_struct *p) { if (!p) { DEBUG(0,("Invalid pipe in close_internal_rpc_pipe_hnd\n"));