0
0
Fork 0
mirror of https://github.com/bitcoin/bitcoin.git synced 2025-02-09 10:43:19 -05:00

scripted-diff: replace non-standard fixed width integer types (u_int... -> uint`...)

-BEGIN VERIFY SCRIPT-
sed -i 's/u_int/uint/g' $(git grep -l u_int)
-END VERIFY SCRIPT-
This commit is contained in:
Sebastian Falbesoner 2022-05-12 15:44:24 +02:00
parent dd9f61a184
commit 672d49c863
3 changed files with 7 additions and 7 deletions

View file

@ -2454,9 +2454,9 @@ bool CChainState::FlushStateToDisk(
full_flush_completed = true; full_flush_completed = true;
TRACE5(utxocache, flush, TRACE5(utxocache, flush,
(int64_t)(GetTimeMicros() - nNow.count()), // in microseconds (µs) (int64_t)(GetTimeMicros() - nNow.count()), // in microseconds (µs)
(u_int32_t)mode, (uint32_t)mode,
(u_int64_t)coins_count, (uint64_t)coins_count,
(u_int64_t)coins_mem_usage, (uint64_t)coins_mem_usage,
(bool)fFlushForPrune); (bool)fFlushForPrune);
} }
} }

View file

@ -99,7 +99,7 @@ void BerkeleyEnvironment::Close()
if (ret != 0) if (ret != 0)
LogPrintf("BerkeleyEnvironment::Close: Error %d closing database environment: %s\n", ret, DbEnv::strerror(ret)); LogPrintf("BerkeleyEnvironment::Close: Error %d closing database environment: %s\n", ret, DbEnv::strerror(ret));
if (!fMockDb) if (!fMockDb)
DbEnv((u_int32_t)0).remove(strPath.c_str(), 0); DbEnv((uint32_t)0).remove(strPath.c_str(), 0);
if (error_file) fclose(error_file); if (error_file) fclose(error_file);
@ -248,7 +248,7 @@ const void* BerkeleyBatch::SafeDbt::get_data() const
return m_dbt.get_data(); return m_dbt.get_data();
} }
u_int32_t BerkeleyBatch::SafeDbt::get_size() const uint32_t BerkeleyBatch::SafeDbt::get_size() const
{ {
return m_dbt.get_size(); return m_dbt.get_size();
} }

View file

@ -34,7 +34,7 @@ struct bilingual_str;
namespace wallet { namespace wallet {
struct WalletDatabaseFileId { struct WalletDatabaseFileId {
u_int8_t value[DB_FILE_ID_LEN]; uint8_t value[DB_FILE_ID_LEN];
bool operator==(const WalletDatabaseFileId& rhs) const; bool operator==(const WalletDatabaseFileId& rhs) const;
}; };
@ -182,7 +182,7 @@ class BerkeleyBatch : public DatabaseBatch
// delegate to Dbt // delegate to Dbt
const void* get_data() const; const void* get_data() const;
u_int32_t get_size() const; uint32_t get_size() const;
// conversion operator to access the underlying Dbt // conversion operator to access the underlying Dbt
operator Dbt*(); operator Dbt*();