From d925b327f4703cc141c0a7f3eec912dba8440880 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Mon, 20 Jun 2011 18:40:33 +0930 Subject: tdb_compat: Higher level API fixes. My previous patches fixed up all direct TDB callers, but there are a few utility functions and the db_context functions which are still using the old -1 / 0 return codes. It's clearer to fix up all the callers of these too, so everywhere is consistent: non-zero means an error. Signed-off-by: Rusty Russell --- source3/utils/net_idmap_check.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3/utils') diff --git a/source3/utils/net_idmap_check.c b/source3/utils/net_idmap_check.c index e406a65679..3adc060a7c 100644 --- a/source3/utils/net_idmap_check.c +++ b/source3/utils/net_idmap_check.c @@ -346,7 +346,7 @@ fetch_record(struct check_ctx* ctx, TALLOC_CTX* mem_ctx, TDB_DATA key) { TDB_DATA tmp; - if (ctx->diff->fetch(ctx->diff, mem_ctx, key, &tmp) == -1) { + if (ctx->diff->fetch(ctx->diff, mem_ctx, key, &tmp) != 0) { DEBUG(0, ("Out of memory!\n")); return tdb_null; } @@ -357,7 +357,7 @@ fetch_record(struct check_ctx* ctx, TALLOC_CTX* mem_ctx, TDB_DATA key) return ret; } - if (ctx->db->fetch(ctx->db, mem_ctx, key, &tmp) == -1) { + if (ctx->db->fetch(ctx->db, mem_ctx, key, &tmp) != 0) { DEBUG(0, ("Out of memory!\n")); return tdb_null; } -- cgit