s3-dcerpc: make a few local functions as static
authorSimo Sorce <idra@samba.org>
Mon, 2 Aug 2010 14:28:10 +0000 (10:28 -0400)
committerSimo Sorce <idra@samba.org>
Tue, 17 Aug 2010 10:33:13 +0000 (06:33 -0400)
source3/include/proto.h
source3/rpc_server/srv_pipe.c

index 70a21021633dbd3bf6f22f3d48b087a90e51ba22..ebb34321639465f5b8e3895dbb3248b1d677996f 100644 (file)
@@ -4742,10 +4742,6 @@ NTSTATUS rpc_pipe_register_commands(int version, const char *clnt,
                                    const struct ndr_syntax_id *interface,
                                    const struct api_struct *cmds, int size);
 bool is_known_pipename(const char *cli_filename, struct ndr_syntax_id *syntax);
-bool api_pipe_bind_req(struct pipes_struct *p, struct ncacn_packet *pkt);
-bool api_pipe_alter_context(struct pipes_struct *p, struct ncacn_packet *pkt);
-void free_pipe_rpc_context( PIPE_RPC_FNS *list );
-bool api_pipe_request(struct pipes_struct *p, struct ncacn_packet *pkt);
 
 /* The following definitions come from rpc_server/srv_pipe_hnd.c  */
 
index e704d758d7cfec3efa48d6a990651e7b2e6e7cd3..18414f0642da7e87e938a05e3da92cc70902f840 100644 (file)
@@ -982,7 +982,8 @@ static bool pipe_ntlmssp_auth_bind(struct pipes_struct *p,
  Respond to a pipe bind request.
 *******************************************************************/
 
-bool api_pipe_bind_req(struct pipes_struct *p, struct ncacn_packet *pkt)
+static bool api_pipe_bind_req(struct pipes_struct *p,
+                               struct ncacn_packet *pkt)
 {
        struct dcerpc_auth auth_info;
        uint16 assoc_gid;
@@ -1263,7 +1264,8 @@ bool api_pipe_bind_req(struct pipes_struct *p, struct ncacn_packet *pkt)
  SPNEGO calls.
 ****************************************************************************/
 
-bool api_pipe_alter_context(struct pipes_struct *p, struct ncacn_packet *pkt)
+static bool api_pipe_alter_context(struct pipes_struct *p,
+                                       struct ncacn_packet *pkt)
 {
        struct dcerpc_auth auth_info;
        uint16 assoc_gid;
@@ -1481,7 +1483,7 @@ static PIPE_RPC_FNS* find_pipe_fns_by_context( PIPE_RPC_FNS *list, uint32 contex
  Memory cleanup.
 ****************************************************************************/
 
-void free_pipe_rpc_context( PIPE_RPC_FNS *list )
+static void free_pipe_rpc_context( PIPE_RPC_FNS *list )
 {
        PIPE_RPC_FNS *tmp = list;
        PIPE_RPC_FNS *tmp2;
@@ -1504,7 +1506,8 @@ static bool api_rpcTNP(struct pipes_struct *p, struct ncacn_packet *pkt,
  before doing the call.
 ****************************************************************************/
 
-bool api_pipe_request(struct pipes_struct *p, struct ncacn_packet *pkt)
+static bool api_pipe_request(struct pipes_struct *p,
+                               struct ncacn_packet *pkt)
 {
        bool ret = False;
        bool changed_user = False;