From f02f8563a20c8a676e81f61cf74fa3b20db000f0 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Fri, 31 Aug 2007 15:51:05 +0000 Subject: 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) --- source3/lib/util_tdb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3/lib') 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)); -- cgit