summaryrefslogtreecommitdiff
path: root/src/timesync/wait-sync.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/timesync/wait-sync.c')
-rw-r--r--src/timesync/wait-sync.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/timesync/wait-sync.c b/src/timesync/wait-sync.c
index f42e6496bb..57e6cd3403 100644
--- a/src/timesync/wait-sync.c
+++ b/src/timesync/wait-sync.c
@@ -80,7 +80,6 @@ static int inotify_handler(sd_event_source *s,
sd_event *event = sd_event_source_get_event(s);
ClockState *sp = userdata;
union inotify_event_buffer buffer;
- struct inotify_event *e;
ssize_t l;
l = read(fd, &buffer, sizeof(buffer));
@@ -90,7 +89,7 @@ static int inotify_handler(sd_event_source *s,
return log_warning_errno(errno, "Lost access to inotify: %m");
}
- FOREACH_INOTIFY_EVENT(e, buffer, l)
+ FOREACH_INOTIFY_EVENT_WARN(e, buffer, l)
process_inotify_event(event, sp, e);
return 0;