summaryrefslogtreecommitdiff
path: root/source3/lib/adt_tree.c
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2012-03-24 17:11:11 +0100
committerJelmer Vernooij <jelmer@samba.org>2012-03-24 17:11:11 +0100
commit85aa07761abbbf1212e244c8b0a835e41834ae16 (patch)
tree6b225865d9de1210dc393becb20205490b46ba6c /source3/lib/adt_tree.c
parent456abea8941dfb6dab6e69a760532426a781d9ba (diff)
downloadsamba-85aa07761abbbf1212e244c8b0a835e41834ae16.tar.gz
samba-85aa07761abbbf1212e244c8b0a835e41834ae16.tar.bz2
samba-85aa07761abbbf1212e244c8b0a835e41834ae16.zip
adt_tree: Fix return types.
Diffstat (limited to 'source3/lib/adt_tree.c')
-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 a225796fc7..b6b5a98da0 100644
--- a/source3/lib/adt_tree.c
+++ b/source3/lib/adt_tree.c
@@ -217,12 +217,12 @@ bool pathtree_add(struct sorted_tree *tree, const char *path, void *data_p)
if ( !path || *path != '\\' ) {
DEBUG(0,("pathtree_add: Attempt to add a node with a bad path [%s]\n",
path ? path : "NULL" ));
- return WERR_INVALID_PARAM;
+ return false;
}
if ( !tree ) {
DEBUG(0,("pathtree_add: Attempt to add a node to an uninitialized tree!\n"));
- return WERR_INVALID_PARAM;
+ return false;
}
/* move past the first '\\' */
@@ -231,7 +231,7 @@ bool pathtree_add(struct sorted_tree *tree, const char *path, void *data_p)
path2 = SMB_STRDUP( path );
if ( !path2 ) {
DEBUG(0,("pathtree_add: strdup() failed on string [%s]!?!?!\n", path));
- return WERR_NOMEM;
+ return false;
}