summaryrefslogtreecommitdiff
path: root/source3/registry
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-04-13 14:41:44 +0200
committerMichael Adam <obnox@samba.org>2008-04-13 15:33:47 +0200
commit01f4bd4f4d05e195911f4787f209b2ab6e2d8ab4 (patch)
tree4c8ac760604b66e21c49520b387b1cce56bfeee2 /source3/registry
parent84c5da2ff490c68fcdd66c2ca909c54faed23e8c (diff)
downloadsamba-01f4bd4f4d05e195911f4787f209b2ab6e2d8ab4.tar.gz
samba-01f4bd4f4d05e195911f4787f209b2ab6e2d8ab4.tar.bz2
samba-01f4bd4f4d05e195911f4787f209b2ab6e2d8ab4.zip
adt_tree: change pathtree_add to return WERR instead of bool.
Michael (This used to be commit da45fb92f69221758f36db4cbb7d871e3ce60718)
Diffstat (limited to 'source3/registry')
-rw-r--r--source3/registry/reg_cachehook.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/registry/reg_cachehook.c b/source3/registry/reg_cachehook.c
index db07330820..f407f310f7 100644
--- a/source3/registry/reg_cachehook.c
+++ b/source3/registry/reg_cachehook.c
@@ -77,7 +77,7 @@ WERROR reghook_cache_init(void)
bool reghook_cache_add(const char *keyname, REGISTRY_OPS *ops)
{
- bool ret;
+ WERROR werr;
char *key = NULL;
key = keyname_to_path(talloc_tos(), keyname);
@@ -89,9 +89,9 @@ bool reghook_cache_add(const char *keyname, REGISTRY_OPS *ops)
DEBUG(10, ("reghook_cache_add: Adding ops %p for key [%s]\n",
(void *)ops, key));
- ret = pathtree_add(cache_tree, key, ops);
+ werr = pathtree_add(cache_tree, key, ops);
TALLOC_FREE(key);
- return ret;
+ return W_ERROR_IS_OK(werr);
}
/**********************************************************************