From 413c2e9b0aed25ef49b4344c1aec145d0e45a51e Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Sun, 13 Apr 2008 00:54:44 +0200 Subject: registry: remove the REGISTRY_HOOKS layer from the reghook cache. There is no need to save the keyname again, we only need to get the REGISTRY_OPS out of the pathtree. Furthermore, this makes life easier, since we can now pass in keynames as temporarily allocated strings. Michael (This used to be commit 2f9ee2f782c77ed99669af5ac2ba40cb0978f0da) --- source3/registry/reg_init_full.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/registry/reg_init_full.c') diff --git a/source3/registry/reg_init_full.c b/source3/registry/reg_init_full.c index ad245cb52e..f171949e38 100644 --- a/source3/registry/reg_init_full.c +++ b/source3/registry/reg_init_full.c @@ -86,7 +86,7 @@ bool init_registry( void ) reghook_cache_init(); for ( i=0; reg_hooks[i].keyname; i++ ) { - if ( !reghook_cache_add(®_hooks[i]) ) + if (!reghook_cache_add(reg_hooks[i].keyname, reg_hooks[i].ops)) goto fail; } -- cgit