1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-27 22:50:26 +03:00

adt_tree: Fix return types.

This commit is contained in:
Jelmer Vernooij 2012-03-24 17:11:11 +01:00
parent 456abea894
commit 85aa07761a

View File

@ -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;
}