From b18fc3a8d0ae115d6f37d765925aaf441646c76c Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 16 Sep 2020 20:40:26 +0200 Subject: [PATCH] db/update/InotifySource: use `auto` --- src/db/update/InotifySource.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)