summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2020-09-16 20:40:26 +0200
committerMax Kellermann <max@musicpd.org>2020-09-16 20:40:27 +0200
commitb18fc3a8d0ae115d6f37d765925aaf441646c76c (patch)
treeeb3d4eefcf13ebd7b5e93044533e8143d6b057e9
parenta8e23c414047064048a0cabfe0c94f772fdaea57 (diff)
db/update/InotifySource: use `auto`
-rw-r--r--src/db/update/InotifySource.cxx2
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)