summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2005-06-13 19:53:09 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:57:13 -0500
commitc7081a0acde413651468b08193b453e778c59dfa (patch)
treed29974e552e97a3b65707688aa58266aca7ab80e /source3
parentc52e7fdf78db56aa994d2bd9c2613ccef7679986 (diff)
downloadsamba-c7081a0acde413651468b08193b453e778c59dfa.tar.gz
samba-c7081a0acde413651468b08193b453e778c59dfa.tar.bz2
samba-c7081a0acde413651468b08193b453e778c59dfa.zip
r7547: removing unused fields in the REGISTRY_KEY structure associated with open handles
(This used to be commit ffc7bd87d8a03d8269ae6d0b9e314f8f20003a06)
Diffstat (limited to 'source3')
-rw-r--r--source3/include/rpc_reg.h2
-rw-r--r--source3/rpc_server/srv_reg_nt.c8
2 files changed, 1 insertions, 9 deletions
diff --git a/source3/include/rpc_reg.h b/source3/include/rpc_reg.h
index 2849122667..59684a5b5e 100644
--- a/source3/include/rpc_reg.h
+++ b/source3/include/rpc_reg.h
@@ -110,7 +110,7 @@ typedef struct _RegistryKey {
struct _RegistryKey *prev, *next;
- POLICY_HND hnd;
+ /* POLICY_HND hnd; */
pstring name; /* full name of registry key */
REGISTRY_HOOK *hook;
diff --git a/source3/rpc_server/srv_reg_nt.c b/source3/rpc_server/srv_reg_nt.c
index 9792592c19..9df8e9b5fc 100644
--- a/source3/rpc_server/srv_reg_nt.c
+++ b/source3/rpc_server/srv_reg_nt.c
@@ -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 @@ static void free_regkey_info(void *ptr)
{
REGISTRY_KEY *info = (REGISTRY_KEY*)ptr;
- DLIST_REMOVE(regkeys_list, info);
-
SAFE_FREE(info);
}
@@ -162,9 +157,6 @@ static WERROR open_registry_key(pipes_struct *p, POLICY_HND *hnd, REGISTRY_KEY *
if ( ! NT_STATUS_IS_OK(result) )
SAFE_FREE( regkey );
- else
- DLIST_ADD( regkeys_list, regkey );
-
DEBUG(7,("open_registry_key: exit\n"));