tdb_delete: check returns for 0, not -1.
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 20 Jun 2011 09:10:31 +0000 (18:40 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 20 Jun 2011 09:18:35 +0000 (11:18 +0200)
commit1078eb21c49d707ddeef2257353f35c10d131b9f
tree64e7f4ff60069931f905f27a200687099fa030bf
parent058c4f84924c07b88ccaf3d617f3abff797a7cc8
tdb_delete: check returns for 0, not -1.

TDB2 returns a negative error number on failure.  This is compatible
if we always check for != 0 instead of == -1.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
lib/util/util_tdb.h
source3/lib/gencache.c
source3/libsmb/smb_share_modes.c
source3/winbindd/winbindd_cache.c
source4/ntvfs/posix/xattr_tdb.c