X-Git-Url: https://git.llucax.com/software/libev.git/blobdiff_plain/c7a6958051fa283b6c7a30962ee616cccb306d01..d89bdc728203c12cec56cf6e5284882842f19ca4:/ev.c?ds=sidebyside diff --git a/ev.c b/ev.c index ff47bd2..2c34141 100644 --- a/ev.c +++ b/ev.c @@ -748,7 +748,7 @@ enable_secure (void) #endif } -int +unsigned int ev_method (EV_P) { return method; @@ -772,7 +772,7 @@ loop_init (EV_P_ unsigned int flags) now_floor = mn_now; rtmn_diff = ev_rt_now - mn_now; - if (!(flags & EVMETHOD_NOENV) && !enable_secure () && getenv ("LIBEV_FLAGS")) + if (!(flags & EVFLAG_NOENV) && !enable_secure () && getenv ("LIBEV_FLAGS")) flags = atoi (getenv ("LIBEV_FLAGS")); if (!(flags & 0x0000ffff)) @@ -1384,7 +1384,10 @@ ev_timer_again (EV_P_ struct ev_timer *w) ev_timer_stop (EV_A_ w); } else if (w->repeat) - ev_timer_start (EV_A_ w); + { + w->at = w->repeat; + ev_timer_start (EV_A_ w); + } } #if EV_PERIODICS