summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2011-06-20 18:40:31 +0930
committerRusty Russell <rusty@rustcorp.com.au>2011-06-20 11:18:35 +0200
commit1078eb21c49d707ddeef2257353f35c10d131b9f (patch)
tree64e7f4ff60069931f905f27a200687099fa030bf /lib
parent058c4f84924c07b88ccaf3d617f3abff797a7cc8 (diff)
downloadsamba-1078eb21c49d707ddeef2257353f35c10d131b9f.tar.gz
samba-1078eb21c49d707ddeef2257353f35c10d131b9f.tar.bz2
samba-1078eb21c49d707ddeef2257353f35c10d131b9f.zip
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>
Diffstat (limited to 'lib')
-rw-r--r--lib/util/util_tdb.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/util/util_tdb.h b/lib/util/util_tdb.h
index c563f0d4b6..92b88bacb4 100644
--- a/lib/util/util_tdb.h
+++ b/lib/util/util_tdb.h
@@ -111,7 +111,7 @@ int tdb_store_bystring(struct tdb_context *tdb, const char *keystr, TDB_DATA dat
TDB_DATA tdb_fetch_bystring(struct tdb_context *tdb, const char *keystr);
/****************************************************************************
- Delete an entry using a null terminated string key.
+ Delete an entry using a null terminated string key. 0 on success, -ve on err.
****************************************************************************/
int tdb_delete_bystring(struct tdb_context *tdb, const char *keystr);