diff --git a/uloop.c b/uloop.c index 4be5f45..e9f8d52 100644 --- a/uloop.c +++ b/uloop.c @@ -368,11 +368,6 @@ static void uloop_process_timeouts(struct timeval *tv) } } -void uloop_end(void) -{ - uloop_cancelled = true; -} - void uloop_run(void) { struct timeval tv; diff --git a/uloop.h b/uloop.h index 2b02e18..a6165af 100644 --- a/uloop.h +++ b/uloop.h @@ -71,7 +71,11 @@ int uloop_timeout_add(struct uloop_timeout *timeout); int uloop_timeout_set(struct uloop_timeout *timeout, int msecs); int uloop_timeout_cancel(struct uloop_timeout *timeout); -void uloop_end(void); +static inline void uloop_end(void) +{ + uloop_cancelled = true; +} + int uloop_init(void); void uloop_run(void); void uloop_done(void);