summaryrefslogtreecommitdiff
path: root/databases/tokyocabinet/patches/patch-tcadb.c
blob: 09673403b2f8a56914fcb07ad9bf4bb184d85bb2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
$NetBSD: patch-tcadb.c,v 1.1 2013/10/25 20:27:18 jperkin Exp $

Fix return types.

--- tcadb.c.orig	2012-08-18 02:08:38.000000000 +0000
+++ tcadb.c
@@ -3743,7 +3743,7 @@ static bool tcadbmulout(ADBMUL *mul, con
    record. */
 static void *tcadbmulget(ADBMUL *mul, const void *kbuf, int ksiz, int *sp){
   assert(mul && kbuf && ksiz >= 0 && sp);
-  if(!mul->adbs) return false;
+  if(!mul->adbs) return NULL;
   int idx = tcadbmulidx(mul, kbuf, ksiz);
   TCADB *adb = mul->adbs[idx];
   return tcadbget(adb, kbuf, ksiz, sp);
@@ -3792,7 +3792,7 @@ static bool tcadbmuliterinit(ADBMUL *mul
    `NULL'. */
 static void *tcadbmuliternext(ADBMUL *mul, int *sp){
   assert(mul && sp);
-  if(!mul->adbs || mul->iter < 0) return false;
+  if(!mul->adbs || mul->iter < 0) return NULL;
   while(mul->iter < mul->num){
     TCADB *adb = mul->adbs[mul->iter];
     char *rv = tcadbiternext(adb, sp);