summaryrefslogtreecommitdiff
path: root/source3/registry/reg_cachehook.c
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2005-02-23 16:36:44 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:55:43 -0500
commit96a3fede405cd095e353398ff05f4b43a07c457d (patch)
tree2c0e52f9883949091c8af092307e154cb58f4bf2 /source3/registry/reg_cachehook.c
parent34a5c5a580102afe1503da911d6e3b61191bb325 (diff)
downloadsamba-96a3fede405cd095e353398ff05f4b43a07c457d.tar.gz
samba-96a3fede405cd095e353398ff05f4b43a07c457d.tar.bz2
samba-96a3fede405cd095e353398ff05f4b43a07c457d.zip
r5517: code cleanup; rename the sorted_tree to pathtree (used by registry code)
I was going to use this for tracking dfs mounts in smbclient but found another way. Still the cleanup is valid so commiting it. should be minimally disruptive since it is not widely used. (This used to be commit 00738dca3b07083c91545910486a1f30f2b17281)
Diffstat (limited to 'source3/registry/reg_cachehook.c')
-rw-r--r--source3/registry/reg_cachehook.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/source3/registry/reg_cachehook.c b/source3/registry/reg_cachehook.c
index 3b75cae1a5..dc7136a1d5 100644
--- a/source3/registry/reg_cachehook.c
+++ b/source3/registry/reg_cachehook.c
@@ -21,6 +21,7 @@
/* Implementation of registry hook cache tree */
#include "includes.h"
+#include "adt_tree.h"
#undef DBGC_CLASS
#define DBGC_CLASS DBGC_RPC_SRV
@@ -35,7 +36,7 @@ static REGISTRY_HOOK default_hook = { KEY_TREE_ROOT, &regdb_ops };
BOOL reghook_cache_init( void )
{
- cache_tree = sorted_tree_init( &default_hook, NULL, NULL );
+ cache_tree = pathtree_init( &default_hook, NULL, NULL );
return ( cache_tree == NULL );
}
@@ -59,7 +60,7 @@ BOOL reghook_cache_add( REGISTRY_HOOK *hook )
DEBUG(10,("reghook_cache_add: Adding key [%s]\n", key));
- return sorted_tree_add( cache_tree, key, hook );
+ return pathtree_add( cache_tree, key, hook );
}
/**********************************************************************
@@ -93,7 +94,7 @@ REGISTRY_HOOK* reghook_cache_find( char *keyname )
DEBUG(10,("reghook_cache_find: Searching for keyname [%s]\n", key));
- hook = sorted_tree_find( cache_tree, key ) ;
+ hook = pathtree_find( cache_tree, key ) ;
SAFE_FREE( key );
@@ -108,5 +109,5 @@ void reghook_dump_cache( int debuglevel )
{
DEBUG(debuglevel,("reghook_dump_cache: Starting cache dump now...\n"));
- sorted_tree_print_keys( cache_tree, debuglevel );
+ pathtree_print_keys( cache_tree, debuglevel );
}