From 01f4bd4f4d05e195911f4787f209b2ab6e2d8ab4 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Sun, 13 Apr 2008 14:41:44 +0200 Subject: adt_tree: change pathtree_add to return WERR instead of bool. Michael (This used to be commit da45fb92f69221758f36db4cbb7d871e3ce60718) --- source3/registry/reg_cachehook.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source3/registry') 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); } /********************************************************************** -- cgit