pkgsrc/databases/tokyocabinet/patches/patch-tchdb.c
jperkin 5faad01737 Update to 1.4.48. Add patches to fix build on OSX.
Changes since 1.4.46:

  * tcadb.cc (tcadbmisc): compilation warnings ware supressed.
  * tchdb.cc (tchdbfbpmerge): size checking was added.
  * tcbdb.cc (tcbdbrangeimpl): a bug of dead locking was fixed.
2013-10-25 20:27:18 +00:00

15 lines
416 B
C

$NetBSD: patch-tchdb.c,v 1.1 2013/10/25 20:27:18 jperkin Exp $
Fix return types.
--- tchdb.c.orig 2012-08-18 02:08:38.000000000 +0000
+++ tchdb.c
@@ -697,7 +697,7 @@ void *tchdbget(TCHDB *hdb, const void *k
}
if(!HDBLOCKRECORD(hdb, bidx, false)){
HDBUNLOCKMETHOD(hdb);
- return false;
+ return NULL;
}
char *rv = tchdbgetimpl(hdb, kbuf, ksiz, bidx, hash, sp);
HDBUNLOCKRECORD(hdb, bidx);