summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2007-08-31 15:51:05 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:30:27 -0500
commitf02f8563a20c8a676e81f61cf74fa3b20db000f0 (patch)
tree62ae143f2db770219d96cf3c5463a41e940ba547 /source3
parentd4603ed3396ea6cd2d6a5e75f4b8faa84e3f2d22 (diff)
downloadsamba-f02f8563a20c8a676e81f61cf74fa3b20db000f0.tar.gz
samba-f02f8563a20c8a676e81f61cf74fa3b20db000f0.tar.bz2
samba-f02f8563a20c8a676e81f61cf74fa3b20db000f0.zip
r24847: Change standard failure return code of tdb_validate from "-1" to "1".
(This is more safely used with casts from int to uint8, e.g.) Michael (This used to be commit cb3583b39212688a627a29bbddb2e98497714d42)
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/util_tdb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/lib/util_tdb.c b/source3/lib/util_tdb.c
index 5aee74cbab..75eb3aab07 100644
--- a/source3/lib/util_tdb.c
+++ b/source3/lib/util_tdb.c
@@ -1013,7 +1013,7 @@ NTSTATUS map_nt_error_from_tdb(enum TDB_ERROR err)
static int tdb_validate_child(const char *tdb_path,
tdb_validate_data_func validate_fn)
{
- int ret = -1;
+ int ret = 1;
int num_entries = 0;
TDB_CONTEXT *tdb = NULL;
struct tdb_validation_status v_status;
@@ -1078,7 +1078,7 @@ int tdb_validate(const char *tdb_path, tdb_validate_data_func validate_fn)
pid_t child_pid = -1;
int child_status = 0;
int wait_pid = 0;
- int ret = -1;
+ int ret = 1;
DEBUG(5, ("tdb_validate called for tdb '%s'\n", tdb_path));