X-Git-Url: https://git.llucax.com/software/libev.git/blobdiff_plain/dad4ca18735c2ac55d15c59ea04c628538194a33..46c499e78dc97f19ed40e0479c0855e71dd440a6:/ev.c diff --git a/ev.c b/ev.c index 207ecd1..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)) @@ -909,7 +909,7 @@ ev_default_loop (unsigned int flags) default_loop = 1; #endif - loop_init (EV_A_ methods); + loop_init (EV_A_ flags); if (ev_method (EV_A)) { @@ -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