diff options
author | lloyd <[email protected]> | 2013-12-25 19:57:13 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2013-12-25 19:57:13 +0000 |
commit | a4a59c29500bbae02273bfb75ddb8318a449e851 (patch) | |
tree | 7779f1c9b2708e55eb0f7ad1d5208753a1966ce1 /src/utils/sqlite3/sqlite3.cpp | |
parent | 4d2242a5e920ba14e37c69a8962b34d08cd485f6 (diff) |
Remove global_rng calls for setting up blinding, instead require a RNG
be passed to the engine. Currently pubkey.cpp just passes along the
global_rng but eventually we'll break this API and require a RNG to
the constructor.
Diffstat (limited to 'src/utils/sqlite3/sqlite3.cpp')
-rw-r--r-- | src/utils/sqlite3/sqlite3.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/utils/sqlite3/sqlite3.cpp b/src/utils/sqlite3/sqlite3.cpp index 519be9133..7f6626759 100644 --- a/src/utils/sqlite3/sqlite3.cpp +++ b/src/utils/sqlite3/sqlite3.cpp @@ -43,8 +43,8 @@ size_t sqlite3_database::row_count(const std::string& table_name) void sqlite3_database::create_table(const std::string& table_schema) { - char* errmsg = 0; - int rc = ::sqlite3_exec(m_db, table_schema.c_str(), 0, 0, &errmsg); + char* errmsg = nullptr; + int rc = ::sqlite3_exec(m_db, table_schema.c_str(), nullptr, nullptr, &errmsg); if(rc != SQLITE_OK) { @@ -59,7 +59,7 @@ void sqlite3_database::create_table(const std::string& table_schema) sqlite3_statement::sqlite3_statement(sqlite3_database* db, const std::string& base_sql) { - int rc = ::sqlite3_prepare_v2(db->m_db, base_sql.c_str(), -1, &m_stmt, 0); + int rc = ::sqlite3_prepare_v2(db->m_db, base_sql.c_str(), -1, &m_stmt, nullptr); if(rc != SQLITE_OK) throw std::runtime_error("sqlite3_prepare failed " + base_sql + |