Skip to content

Commit

Permalink
clang-tidy wip
Browse files Browse the repository at this point in the history
  • Loading branch information
ban-nobuhiro committed Sep 27, 2023
1 parent a1bf14b commit 9d24b37
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/limestone/api/log_channel.h
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ class log_channel {

std::size_t id_{};

FILE* strm_;
FILE* strm_{};

bool registered_{};

Expand Down
4 changes: 2 additions & 2 deletions src/limestone/log_channel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ void log_channel::begin_session() noexcept {
} while (current_epoch_id_.load() != envelope_.epoch_id_switched_.load());

auto log_file = file_path();
strm_ = fopen(log_file.c_str(), "a"); // TODO: error check
setvbuf(strm_, nullptr, _IOFBF, 1024 * 1024); // TODO: error check
strm_ = fopen(log_file.c_str(), "a"); // NOLINT TODO: error check
setvbuf(strm_, nullptr, _IOFBF, 1024L * 1024L); // NOLINT TODO: error check
if (!registered_) {
envelope_.add_file(log_file);
registered_ = true;
Expand Down

0 comments on commit 9d24b37

Please sign in to comment.