svn commit: samba r7548 - in trunk/source: include rpc_server

jerry at samba.org jerry at samba.org
Mon Jun 13 19:54:21 GMT 2005


Author: jerry
Date: 2005-06-13 19:54:20 +0000 (Mon, 13 Jun 2005)
New Revision: 7548

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=7548

Log:
removing unused fields in the REGISTRY_KEY structure associated with open handles
Modified:
   trunk/source/include/rpc_reg.h
   trunk/source/rpc_server/srv_reg_nt.c


Changeset:
Modified: trunk/source/include/rpc_reg.h
===================================================================
--- trunk/source/include/rpc_reg.h	2005-06-13 19:53:09 UTC (rev 7547)
+++ trunk/source/include/rpc_reg.h	2005-06-13 19:54:20 UTC (rev 7548)
@@ -110,7 +110,7 @@
 
 	struct _RegistryKey *prev, *next;
 
-	POLICY_HND	hnd;
+	/* POLICY_HND	hnd; */
 	pstring 	name; 	/* full name of registry key */
 	REGISTRY_HOOK	*hook;
 	

Modified: trunk/source/rpc_server/srv_reg_nt.c
===================================================================
--- trunk/source/rpc_server/srv_reg_nt.c	2005-06-13 19:53:09 UTC (rev 7547)
+++ trunk/source/rpc_server/srv_reg_nt.c	2005-06-13 19:54:20 UTC (rev 7548)
@@ -43,9 +43,6 @@
 
 struct generic_mapping reg_map = { REG_KEY_READ, REG_KEY_WRITE, REG_KEY_EXECUTE, REG_KEY_ALL };
 
-static REGISTRY_KEY *regkeys_list;
-
-
 /******************************************************************
  free() function for REGISTRY_KEY
  *****************************************************************/
@@ -54,8 +51,6 @@
 {
 	REGISTRY_KEY *info = (REGISTRY_KEY*)ptr;
 	
-	DLIST_REMOVE(regkeys_list, info);
-
 	SAFE_FREE(info);
 }
 
@@ -162,9 +157,6 @@
 	
 	if ( ! NT_STATUS_IS_OK(result) )
 		SAFE_FREE( regkey );
-	else
-		DLIST_ADD( regkeys_list, regkey );
-
 	
 	DEBUG(7,("open_registry_key: exit\n"));
 



More information about the samba-cvs mailing list