summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2012-03-24 16:41:35 +0100
committerJelmer Vernooij <jelmer@samba.org>2012-03-24 16:41:35 +0100
commit6f1b735cc2972ecd3d2acb30ff834273f08628fe (patch)
tree9a2545b0aebef9e867f57526c84c4710a06c9876 /source3/lib
parent71d41a015add73e0fb355dd9713e99febd71d46f (diff)
downloadsamba-6f1b735cc2972ecd3d2acb30ff834273f08628fe.tar.gz
samba-6f1b735cc2972ecd3d2acb30ff834273f08628fe.tar.bz2
samba-6f1b735cc2972ecd3d2acb30ff834273f08628fe.zip
adt_tree: Avoid WERROR.
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/adt_tree.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/lib/adt_tree.c b/source3/lib/adt_tree.c
index de7f2d2637..a225796fc7 100644
--- a/source3/lib/adt_tree.c
+++ b/source3/lib/adt_tree.c
@@ -206,11 +206,11 @@ static struct tree_node *pathtree_find_child(struct tree_node *node,
Add a new node into the tree given a key path and a blob of data
*************************************************************************/
-WERROR pathtree_add(struct sorted_tree *tree, const char *path, void *data_p)
+bool pathtree_add(struct sorted_tree *tree, const char *path, void *data_p)
{
char *str, *base, *path2;
struct tree_node *current, *next;
- WERROR ret = WERR_OK;
+ bool ret = true;
DEBUG(8,("pathtree_add: Enter\n"));
@@ -259,7 +259,7 @@ WERROR pathtree_add(struct sorted_tree *tree, const char *path, void *data_p)
next = pathtree_birth_child( current, base );
if ( !next ) {
DEBUG(0,("pathtree_add: Failed to create new child!\n"));
- ret = WERR_NOMEM;
+ ret = false;
goto done;
}
}