diff options
author | MarcoFalke <falke.marco@gmail.com> | 2020-11-23 16:15:50 +0100 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2020-11-23 21:19:50 +0100 |
commit | fada14b948cac147198e3b685b5dd8cb72dc2911 (patch) | |
tree | 4a84ed9e578c3297a59e5cb06c1667551fafc346 /src/wallet/bdb.cpp | |
parent | fa8bdb048e65cae2d26bea3f991717a856e2fb39 (diff) | |
download | bitcoin-fada14b948cac147198e3b685b5dd8cb72dc2911.tar.xz |
Treat CDataStream bytes as uint8_t
Also, rename CSerializeData to SerializeData
Diffstat (limited to 'src/wallet/bdb.cpp')
-rw-r--r-- | src/wallet/bdb.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wallet/bdb.cpp b/src/wallet/bdb.cpp index 85aae0170d..8c43e072a3 100644 --- a/src/wallet/bdb.cpp +++ b/src/wallet/bdb.cpp @@ -491,9 +491,9 @@ bool BerkeleyDatabase::Rewrite(const char* pszSkip) break; } if (pszSkip && - strncmp(ssKey.data(), pszSkip, std::min(ssKey.size(), strlen(pszSkip))) == 0) + strncmp((const char*)ssKey.data(), pszSkip, std::min(ssKey.size(), strlen(pszSkip))) == 0) continue; - if (strncmp(ssKey.data(), "\x07version", 8) == 0) { + if (strncmp((const char*)ssKey.data(), "\x07version", 8) == 0) { // Update version: ssValue.clear(); ssValue << CLIENT_VERSION; |