Skip to content

Commit

Permalink
more clang-tidy issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Ege Çetin committed Dec 27, 2024
1 parent eaeb433 commit 4131709
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/utils/FileHelpers.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class FileMonitor {
* @param[in] filePath Path to the file
* @param[in] notifyEvents Events to notify
*/
explicit FileMonitor(std::filesystem::path filePath, int notifyEvents = IN_MODIFY);
explicit FileMonitor(std::filesystem::path filePath, uint32_t notifyEvents = IN_MODIFY);

/// @brief Copy constructor
FileMonitor(const FileMonitor & /*unused*/) = delete;
Expand Down
4 changes: 2 additions & 2 deletions src/utils/FileHelpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,14 @@ void FileMonitor::threadFunc() const noexcept
break;
}

idx += sizeof(inotify_event) + event->len;
idx += static_cast<ssize_t>(sizeof(inotify_event) + event->len);
}

std::this_thread::sleep_for(std::chrono::milliseconds(SLEEP_INTERVAL_MS));
}
}

FileMonitor::FileMonitor(std::filesystem::path filePath, int notifyEvents)
FileMonitor::FileMonitor(std::filesystem::path filePath, uint32_t notifyEvents)
: _fDescriptor(inotify_init()), _filePath(std::move(filePath)), _notifyEvents(notifyEvents)
{
if (_fDescriptor < 0)
Expand Down

0 comments on commit 4131709

Please sign in to comment.