summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2021-02-22 14:39:27 +0100
committerMax Kellermann <max@musicpd.org>2021-02-22 14:39:28 +0100
commitf29c69d6a950e15d8000407e2f682bb46233a8bb (patch)
treecec4cf4c5d420fc80cfa36e575984ec33c34a822
parent7ec4de841e267b2e3f47e892c47a4e88ba74b9a1 (diff)
zeroconf/avahi/Poll: rename `timer` to `event`
-rw-r--r--src/zeroconf/avahi/Poll.cxx10
1 files 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 {