Commit b18fc3a8 authored by Max Kellermann's avatar Max Kellermann

db/update/InotifySource: use `auto`

parent a8e23c41
...@@ -48,7 +48,7 @@ InotifySource::OnSocketReady(gcc_unused unsigned flags) noexcept ...@@ -48,7 +48,7 @@ InotifySource::OnSocketReady(gcc_unused unsigned flags) noexcept
while (true) { while (true) {
const size_t remaining = end - p; const size_t remaining = end - p;
const struct inotify_event *event = const auto *event =
(const struct inotify_event *)p; (const struct inotify_event *)p;
if (remaining < sizeof(*event) || if (remaining < sizeof(*event) ||
remaining < sizeof(*event) + event->len) remaining < sizeof(*event) + event->len)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment