From a4a59c29500bbae02273bfb75ddb8318a449e851 Mon Sep 17 00:00:00 2001 From: lloyd Date: Wed, 25 Dec 2013 19:57:13 +0000 Subject: 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. --- src/utils/sqlite3/sqlite3.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/utils/sqlite3/sqlite3.cpp') 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 + -- cgit v1.2.3