From c7081a0acde413651468b08193b453e778c59dfa Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Mon, 13 Jun 2005 19:53:09 +0000 Subject: r7547: removing unused fields in the REGISTRY_KEY structure associated with open handles (This used to be commit ffc7bd87d8a03d8269ae6d0b9e314f8f20003a06) --- source3/include/rpc_reg.h | 2 +- source3/rpc_server/srv_reg_nt.c | 8 -------- 2 files changed, 1 insertion(+), 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")); -- cgit