[SCM] Samba Shared Repository - branch master updated - f25972832ec9d5a130da9dc060f4c3ed35bda7db

Volker Lendecke vlendec at samba.org
Sun Oct 12 09:42:03 GMT 2008


The branch, master has been updated
       via  f25972832ec9d5a130da9dc060f4c3ed35bda7db (commit)
       via  6b98c1b1596504ae59b88f6e6da0c02fe30afa2d (commit)
      from  d661ac196e728584d796e17b389724046586c99a (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


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

    Make get_rpc_pipe() static

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

    Remove unused #defines

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

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


Changeset truncated at 500 lines:

diff --git a/source3/include/proto.h b/source3/include/proto.h
index 08c1e2c..e4ea3d1 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -8712,7 +8712,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/source3/rpc_server/srv_pipe_hnd.c b/source3/rpc_server/srv_pipe_hnd.c
index 3968d41..e52434f 100644
--- a/source3/rpc_server/srv_pipe_hnd.c
+++ b/source3/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