diff options
author | Max Kellermann <max@musicpd.org> | 2020-09-16 20:40:26 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2020-09-16 20:40:27 +0200 |
commit | b18fc3a8d0ae115d6f37d765925aaf441646c76c (patch) | |
tree | eb3d4eefcf13ebd7b5e93044533e8143d6b057e9 /src/db | |
parent | a8e23c414047064048a0cabfe0c94f772fdaea57 (diff) |
db/update/InotifySource: use `auto`
Diffstat (limited to 'src/db')
-rw-r--r-- | src/db/update/InotifySource.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/db/update/InotifySource.cxx b/src/db/update/InotifySource.cxx index e8b61e874..670f76e32 100644 --- a/src/db/update/InotifySource.cxx +++ b/src/db/update/InotifySource.cxx @@ -48,7 +48,7 @@ InotifySource::OnSocketReady(gcc_unused unsigned flags) noexcept while (true) { const size_t remaining = end - p; - const struct inotify_event *event = + const auto *event = (const struct inotify_event *)p; if (remaining < sizeof(*event) || remaining < sizeof(*event) + event->len) |