Skip to content

Commit

Permalink
fix clang-tidy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
t-horikawa committed Oct 1, 2024
1 parent ae5cffa commit d372dd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tateyama/process/proc_mutex.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class proc_mutex {
void unlock() const {
flock(fd_, LOCK_UN);
}
void fill_contents() {
void fill_contents() const {
std::string pid = std::to_string(getpid());
if (write(fd_, pid.data(), pid.length()) < 0) {
throw std::runtime_error("write error");
Expand Down

1 comment on commit d372dd3

@t-horikawa
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.