From f29c69d6a950e15d8000407e2f682bb46233a8bb Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 22 Feb 2021 14:39:27 +0100 Subject: [PATCH] zeroconf/avahi/Poll: rename `timer` to `event` --- src/zeroconf/avahi/Poll.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/zeroconf/avahi/Poll.cxx b/src/zeroconf/avahi/Poll.cxx index f66c2254e..1b1101e6f 100644 --- a/src/zeroconf/avahi/Poll.cxx +++ b/src/zeroconf/avahi/Poll.cxx @@ -78,7 +78,7 @@ private: }; struct AvahiTimeout final { - CoarseTimerEvent timer; + CoarseTimerEvent event; const AvahiTimeoutCallback callback; void *const userdata; @@ -87,18 +87,18 @@ public: AvahiTimeout(const struct timeval *tv, AvahiTimeoutCallback _callback, void *_userdata, EventLoop &_loop) noexcept - :timer(_loop, BIND_THIS_METHOD(OnTimeout)), + :event(_loop, BIND_THIS_METHOD(OnTimeout)), callback(_callback), userdata(_userdata) { if (tv != nullptr) - timer.Schedule(ToSteadyClockDuration(*tv)); + event.Schedule(ToSteadyClockDuration(*tv)); } static void TimeoutUpdate(AvahiTimeout *t, const struct timeval *tv) noexcept { if (tv != nullptr) - t->timer.Schedule(ToSteadyClockDuration(*tv)); + t->event.Schedule(ToSteadyClockDuration(*tv)); else - t->timer.Cancel(); + t->event.Cancel(); } static void TimeoutFree(AvahiTimeout *t) noexcept {