diff options
author | Michael Adam <obnox@samba.org> | 2008-04-13 14:41:44 +0200 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2008-04-22 15:58:48 +0200 |
commit | 8ffb49f8c36e9710b26c5e78a15e3ec64bcea4ed (patch) | |
tree | c2cf9a348e0b3a2e866eab11cacd62d22e3ce3ad /source/registry | |
parent | b521592b260b0851de5dfe2f36f05ceb6da93bc1 (diff) | |
download | samba-8ffb49f8c36e9710b26c5e78a15e3ec64bcea4ed.tar.gz samba-8ffb49f8c36e9710b26c5e78a15e3ec64bcea4ed.tar.xz samba-8ffb49f8c36e9710b26c5e78a15e3ec64bcea4ed.zip |
adt_tree: change pathtree_add to return WERR instead of bool.
Michael
(cherry picked from commit da45fb92f69221758f36db4cbb7d871e3ce60718)
Diffstat (limited to 'source/registry')
-rw-r--r-- | source/registry/reg_cachehook.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/registry/reg_cachehook.c b/source/registry/reg_cachehook.c index db07330820d..f407f310f74 100644 --- a/source/registry/reg_cachehook.c +++ b/source/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); } /********************************************************************** |