db/update/InotifySource: use auto
This commit is contained in:
parent
a8e23c4140
commit
b18fc3a8d0
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user