Skip to content

Commit

Permalink
SystemMonitor: Fix building with clang
Browse files Browse the repository at this point in the history
  • Loading branch information
jcs authored and awesomekling committed Feb 5, 2020
1 parent dab78c9 commit 8919b61
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Applications/SystemMonitor/DevicesModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -158,11 +158,11 @@ void DevicesModel::update()
}
if (!S_ISBLK(statbuf.st_mode) && !S_ISCHR(statbuf.st_mode))
continue;
unsigned major = ::major(statbuf.st_rdev);
unsigned minor = ::minor(statbuf.st_rdev);
unsigned _major = major(statbuf.st_rdev);
unsigned _minor = minor(statbuf.st_rdev);

auto it = m_devices.find([major, minor](auto& device_info) {
return device_info.major == major && device_info.minor == minor;
auto it = m_devices.find([_major, _minor](auto& device_info) {
return device_info.major == _major && device_info.minor == _minor;
});
if (it != m_devices.end()) {
(*it).path = move(path);
Expand Down

0 comments on commit 8919b61

Please sign in to comment.