]> granicus.if.org Git - libevent/commitdiff
ev_io_timeout consistency
authorYong Wu <33825637+YongW5@users.noreply.github.com>
Mon, 6 Sep 2021 00:06:10 +0000 (08:06 +0800)
committerAzat Khuzhin <a3at.mail@gmail.com>
Sat, 11 Sep 2021 21:39:46 +0000 (00:39 +0300)
event.c

diff --git a/event.c b/event.c
index c2e9fdee808b067c4cb2da32b16acb56e109993b..1fb437e993e654f9a41804fa7a07e6d7a2a3a64b 100644 (file)
--- a/event.c
+++ b/event.c
@@ -2605,7 +2605,7 @@ event_remove_timer_nolock_(struct event *ev)
        /* If it's not pending on a timeout, we don't need to do anything. */
        if (ev->ev_flags & EVLIST_TIMEOUT) {
                event_queue_remove_timeout(base, ev);
-               evutil_timerclear(&ev->ev_.ev_io.ev_timeout);
+               evutil_timerclear(&ev->ev_io_timeout);
        }
 
        return (0);