diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2011-06-20 18:40:33 +0930 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2011-06-20 11:18:35 +0200 |
commit | d925b327f4703cc141c0a7f3eec912dba8440880 (patch) | |
tree | a9d190b375dcae03863591d8f31688dc949fa3eb /source3/lib/dbwrap_util.c | |
parent | ca1936fbb26af0ee8d0421ae6a4e07a0f62311d9 (diff) | |
download | samba-d925b327f4703cc141c0a7f3eec912dba8440880.tar.gz samba-d925b327f4703cc141c0a7f3eec912dba8440880.tar.bz2 samba-d925b327f4703cc141c0a7f3eec912dba8440880.zip |
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 <rusty@rustcorp.com.au>
Diffstat (limited to 'source3/lib/dbwrap_util.c')
-rw-r--r-- | source3/lib/dbwrap_util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/dbwrap_util.c b/source3/lib/dbwrap_util.c index 44a1b8827b..effcf40c6b 100644 --- a/source3/lib/dbwrap_util.c +++ b/source3/lib/dbwrap_util.c @@ -492,7 +492,7 @@ TDB_DATA dbwrap_fetch(struct db_context *db, TALLOC_CTX *mem_ctx, { TDB_DATA result; - if (db->fetch(db, mem_ctx, key, &result) == -1) { + if (db->fetch(db, mem_ctx, key, &result) != 0) { return make_tdb_data(NULL, 0); } |