forked from pool/kyotocabinet
Dirk Mueller
5b0358e6d1
Fix errors seen by GCC6. OBS-URL: https://build.opensuse.org/request/show/397912 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/kyotocabinet?expand=0&rev=15
12 lines
394 B
Diff
12 lines
394 B
Diff
--- kyotocabinet-1.2.76/kcdbext.h 2016-05-25 11:32:53.591866016 +0200
|
|
+++ kyotocabinet-1.2.76/kcdbext.h 2012-05-24 18:27:59.000000000 +0200
|
|
@@ -1278,7 +1278,7 @@
|
|
if (omode_ == 0) {
|
|
set_error(_KCCODELINE_, BasicDB::Error::INVALID, "not opened");
|
|
*sp = 0;
|
|
- return false;
|
|
+ return '\0';
|
|
}
|
|
if (!cache_) return db_.get(kbuf, ksiz, sp);
|
|
size_t dvsiz = 0;
|