X-Git-Url: https://git.llucax.com/software/libev.git/blobdiff_plain/dad4ca18735c2ac55d15c59ea04c628538194a33..ea42db4da534aff7a623b651d9287644837b32e2:/ev.c diff --git a/ev.c b/ev.c index 207ecd1..c8421b5 100644 --- a/ev.c +++ b/ev.c @@ -748,7 +748,7 @@ enable_secure (void) #endif } -int +unsigned int ev_method (EV_P) { return method; @@ -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