make uloop_end() inline

This commit is contained in:
Felix Fietkau 2011-02-07 17:51:20 +01:00
parent 81839e259a
commit db19e64c1a
2 changed files with 5 additions and 6 deletions

View file

@ -368,11 +368,6 @@ static void uloop_process_timeouts(struct timeval *tv)
} }
} }
void uloop_end(void)
{
uloop_cancelled = true;
}
void uloop_run(void) void uloop_run(void)
{ {
struct timeval tv; struct timeval tv;

View file

@ -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_set(struct uloop_timeout *timeout, int msecs);
int uloop_timeout_cancel(struct uloop_timeout *timeout); 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); int uloop_init(void);
void uloop_run(void); void uloop_run(void);
void uloop_done(void); void uloop_done(void);