forked from pool/kyotocabinet
Dirk Mueller
4177539dcd
- kyotocabinet-fix-debuginfo.patch: Fix debuginfo generation - gcc6-fix-errors.patch: return NULL instead, make GCC7 happy OBS-URL: https://build.opensuse.org/request/show/485007 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/kyotocabinet?expand=0&rev=17
14 lines
448 B
Diff
14 lines
448 B
Diff
Index: kyotocabinet-1.2.76/kcdbext.h
|
|
===================================================================
|
|
--- kyotocabinet-1.2.76.orig/kcdbext.h
|
|
+++ kyotocabinet-1.2.76/kcdbext.h
|
|
@@ -1278,7 +1278,7 @@ class IndexDB {
|
|
if (omode_ == 0) {
|
|
set_error(_KCCODELINE_, BasicDB::Error::INVALID, "not opened");
|
|
*sp = 0;
|
|
- return false;
|
|
+ return NULL;
|
|
}
|
|
if (!cache_) return db_.get(kbuf, ksiz, sp);
|
|
size_t dvsiz = 0;
|