summaryrefslogtreecommitdiff
path: root/source3/registry/reg_cachehook.c
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2009-03-23 23:14:45 +0100
committerMichael Adam <obnox@samba.org>2009-04-27 11:21:04 +0200
commite935d8616b3846695f4633ca0dbbc36ee54608e4 (patch)
tree1dd35908403e29c187631b8b9f99bff687b7b365 /source3/registry/reg_cachehook.c
parentc9b1734419e795b1f57882de37758e7f1ee25b94 (diff)
downloadsamba-e935d8616b3846695f4633ca0dbbc36ee54608e4.tar.gz
samba-e935d8616b3846695f4633ca0dbbc36ee54608e4.tar.bz2
samba-e935d8616b3846695f4633ca0dbbc36ee54608e4.zip
s3:registry: replace typedef REGISTRY_OPS by struct registry_ops
Michael
Diffstat (limited to 'source3/registry/reg_cachehook.c')
-rw-r--r--source3/registry/reg_cachehook.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source3/registry/reg_cachehook.c b/source3/registry/reg_cachehook.c
index 6697a69356..4f84de5286 100644
--- a/source3/registry/reg_cachehook.c
+++ b/source3/registry/reg_cachehook.c
@@ -26,7 +26,7 @@
#define DBGC_CLASS DBGC_REGISTRY
static SORTED_TREE *cache_tree = NULL;
-extern REGISTRY_OPS regdb_ops; /* these are the default */
+extern struct registry_ops regdb_ops; /* these are the default */
static WERROR keyname_to_path(TALLOC_CTX *mem_ctx, const char *keyname,
char **path)
@@ -79,7 +79,7 @@ WERROR reghook_cache_init(void)
is not in the exact format that a SORTED_TREE expects.
*********************************************************************/
-WERROR reghook_cache_add(const char *keyname, REGISTRY_OPS *ops)
+WERROR reghook_cache_add(const char *keyname, struct registry_ops *ops)
{
WERROR werr;
char *key = NULL;
@@ -107,11 +107,11 @@ done:
Find a key in the cache.
*********************************************************************/
-REGISTRY_OPS *reghook_cache_find(const char *keyname)
+struct registry_ops *reghook_cache_find(const char *keyname)
{
WERROR werr;
char *key = NULL;
- REGISTRY_OPS *ops = NULL;
+ struct registry_ops *ops = NULL;
if (keyname == NULL) {
return NULL;
@@ -124,7 +124,7 @@ REGISTRY_OPS *reghook_cache_find(const char *keyname)
DEBUG(10,("reghook_cache_find: Searching for keyname [%s]\n", key));
- ops = (REGISTRY_OPS *)pathtree_find(cache_tree, key);
+ ops = (struct registry_ops *)pathtree_find(cache_tree, key);
DEBUG(10, ("reghook_cache_find: found ops %p for key [%s]\n",
ops ? (void *)ops : 0, key));