Skip to content

Commit 1acb793

Browse files
committed
bugfix: #362
1 parent ced148c commit 1acb793

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

source/citnames/source/EventsDatabase.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ namespace {
4343
return std::runtime_error(fmt::format("{}: {}", message, sqlite3_errmsg(handle)));
4444
}
4545

46-
rust::Result<sqlite3 *> open(const fs::path &file) {
46+
rust::Result<sqlite3 *> open_sqlite(const fs::path &file) {
4747
sqlite3 *handle;
4848
if (auto rc = sqlite3_open(file.c_str(), &handle); rc == SQLITE_OK) {
4949
return rust::Ok(handle);
@@ -132,7 +132,7 @@ namespace cs {
132132
}
133133

134134
rust::Result<EventsDatabase::Ptr> EventsDatabase::open(const fs::path &file) {
135-
auto handle = ::open(file);
135+
auto handle = open_sqlite(file);
136136

137137
auto select_events = handle
138138
.and_then<sqlite3_stmt *>([](auto handle) {

source/intercept/source/collect/EventsDatabase.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ namespace {
4242
return std::runtime_error(fmt::format("{}: {}", message, sqlite3_errmsg(handle)));
4343
}
4444

45-
rust::Result<sqlite3 *> open(const fs::path &file) {
45+
rust::Result<sqlite3 *> open_sqlite(const fs::path &file) {
4646
sqlite3 *handle;
4747
if (auto rc = sqlite3_open(file.c_str(), &handle); rc == SQLITE_OK) {
4848
return rust::Ok(handle);
@@ -92,7 +92,7 @@ namespace ic {
9292
}
9393

9494
rust::Result<EventsDatabase::Ptr> EventsDatabase::create(const fs::path &file) {
95-
auto handle = open(file)
95+
auto handle = open_sqlite(file)
9696
.and_then<sqlite3 *>([](auto handle) {
9797
constexpr const char *sql =
9898
"DROP TABLE IF EXISTS events;"

0 commit comments

Comments
 (0)