INN commit: trunk (doc/man/dbz.3 lib/dbz.c)
INN Commit
rra at isc.org
Sun Feb 7 18:57:41 UTC 2010
Date: Sunday, February 7, 2010 @ 10:57:41
Author: iulius
Revision: 8950
dbzstore does return DBZSTORE_RESULT, not bool.
Patch from Heiko Schlichting.
Modified:
trunk/doc/man/dbz.3
trunk/lib/dbz.c
---------------+
doc/man/dbz.3 | 4 ++--
lib/dbz.c | 5 ++++-
2 files changed, 6 insertions(+), 3 deletions(-)
Modified: doc/man/dbz.3
===================================================================
--- doc/man/dbz.3 2010-02-07 18:18:16 UTC (rev 8949)
+++ doc/man/dbz.3 2010-02-07 18:57:41 UTC (rev 8950)
@@ -19,8 +19,8 @@
.B "off_t dbzfetch(const HASH key)"
.B "bool dbzfetch(const HASH key, void *ivalue)"
.PP
-.B "bool dbzstore(const HASH key, off_t offset)"
-.B "bool dbzstore(const HASH key, void *ivalue)"
+.B "DBZSTORE_RESULT dbzstore(const HASH key, off_t offset)"
+.B "DBZSTORE_RESULT dbzstore(const HASH key, void *ivalue)"
.PP
.B "bool dbzsync(void)"
.PP
Modified: lib/dbz.c
===================================================================
--- lib/dbz.c 2010-02-07 18:18:16 UTC (rev 8949)
+++ lib/dbz.c 2010-02-07 18:57:41 UTC (rev 8950)
@@ -1037,7 +1037,10 @@
/*
* dbzstore - add an entry to the database
- * returns true for success and false for failure
+ *
+ * returns DBZSTORE_OK for success
+ * DBZSTORE_EXISTS for existing entries (duplicates)
+ * DBZSTORE_ERROR for other failure
*/
DBZSTORE_RESULT
dbzstore(const HASH key, off_t data)
More information about the inn-committers
mailing list