db/update/InotifySource: use auto

This commit is contained in:
Max Kellermann 2020-09-16 20:40:26 +02:00
parent a8e23c4140
commit b18fc3a8d0

View File

@ -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)