[SCM] Samba Shared Repository - branch v3-3-test updated - release-3-2-0pre2-4255-g4714784

Volker Lendecke vlendec at samba.org
Sun Oct 12 09:43:40 GMT 2008


The branch, v3-3-test has been updated
       via  4714784877081b6ca0a942554af8595889f044fe (commit)
       via  62f092d010313e8f3eb4e35ffb0b76de9539d8c9 (commit)
      from  e160a19ffc0727c46a696335c9d140e236923cdb (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-3-test


- Log -----------------------------------------------------------------
commit 4714784877081b6ca0a942554af8595889f044fe
Author: Volker Lendecke <vl at samba.org>
Date:   Sun Oct 12 11:44:09 2008 +0200

    Make get_rpc_pipe() static

commit 62f092d010313e8f3eb4e35ffb0b76de9539d8c9
Author: Volker Lendecke <vl at samba.org>
Date:   Sun Oct 12 11:43:52 2008 +0200

    Remove unused #defines

-----------------------------------------------------------------------

Summary of changes:
 source/include/proto.h           |    1 -
 source/rpc_server/srv_pipe_hnd.c |    7 +++----
 2 files changed, 3 insertions(+), 5 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/include/proto.h b/source/include/proto.h
index d69de44..2cf93cc 100644
--- a/source/include/proto.h
+++ b/source/include/proto.h
@@ -8824,7 +8824,6 @@ bool set_rpc_pipe_hnd_state(smb_np_struct *p, uint16 device_state);
 bool close_rpc_pipe_hnd(smb_np_struct *p);
 void pipe_close_conn(connection_struct *conn);
 smb_np_struct *get_rpc_pipe_p(uint16 pnum);
-smb_np_struct *get_rpc_pipe(int pnum);
 struct pipes_struct *make_internal_rpc_pipe_p(const char *pipe_name,
 					      const char *client_address,
 					      struct auth_serversupplied_info *server_info,
diff --git a/source/rpc_server/srv_pipe_hnd.c b/source/rpc_server/srv_pipe_hnd.c
index 3968d41..e52434f 100644
--- a/source/rpc_server/srv_pipe_hnd.c
+++ b/source/rpc_server/srv_pipe_hnd.c
@@ -24,9 +24,6 @@
 #undef DBGC_CLASS
 #define DBGC_CLASS DBGC_RPC_SRV
 
-#define	PIPE		"\\PIPE\\"
-#define	PIPELEN		strlen(PIPE)
-
 static smb_np_struct *chain_p;
 static int pipes_open;
 
@@ -1210,6 +1207,8 @@ static int close_internal_rpc_pipe_hnd(struct pipes_struct *p)
 	return True;
 }
 
+static smb_np_struct *get_rpc_pipe(int pnum);
+
 /****************************************************************************
  Find an rpc pipe given a pipe handle in a buffer and an offset.
 ****************************************************************************/
@@ -1227,7 +1226,7 @@ smb_np_struct *get_rpc_pipe_p(uint16 pnum)
  Find an rpc pipe given a pipe handle.
 ****************************************************************************/
 
-smb_np_struct *get_rpc_pipe(int pnum)
+static smb_np_struct *get_rpc_pipe(int pnum)
 {
 	smb_np_struct *p;
 


-- 
Samba Shared Repository


More information about the samba-cvs mailing list