summaryrefslogtreecommitdiff
path: root/src/zeroconf
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2021-05-25 22:15:27 +0200
committerMax Kellermann <max@musicpd.org>2021-05-25 22:23:55 +0200
commit0cef84cac6b2f3c45b451cb2a011620ba5ca3749 (patch)
tree2e88e90794e4697a938c9ed18226b8d380ac6dbb /src/zeroconf
parent56c0733b427b444beebb9e1a85d5082a20e2a72b (diff)
zeroconf/AvahiPoll: rename "timer" to "event"
Diffstat (limited to 'src/zeroconf')
-rw-r--r--src/zeroconf/AvahiPoll.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/zeroconf/AvahiPoll.cxx b/src/zeroconf/AvahiPoll.cxx
index 8818c298a..41c3e4e54 100644
--- a/src/zeroconf/AvahiPoll.cxx
+++ b/src/zeroconf/AvahiPoll.cxx
@@ -78,7 +78,7 @@ private:
};
struct AvahiTimeout final {
- TimerEvent timer;
+ TimerEvent event;
const AvahiTimeoutCallback callback;
void *const userdata;
@@ -87,17 +87,17 @@ public:
AvahiTimeout(const struct timeval *tv,
AvahiTimeoutCallback _callback, void *_userdata,
EventLoop &_loop)
- :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) {
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) {