unify coding style in timer.c

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2149 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
dzzxzz@gmail.com 2012-06-02 08:40:29 +00:00
parent 7b6828b2b5
commit 907bb8c7fd
1 changed files with 6 additions and 3 deletions

View File

@ -78,12 +78,15 @@ static void _rt_timer_init(rt_timer_t timer,
rt_list_init(&(timer->list));
}
static rt_tick_t rt_timer_list_next_timeout(rt_list_t* timer_list)
static rt_tick_t rt_timer_list_next_timeout(rt_list_t *timer_list)
{
struct rt_timer* timer;
if (rt_list_isempty(timer_list)) return RT_TICK_MAX;
struct rt_timer *timer;
if (rt_list_isempty(timer_list))
return RT_TICK_MAX;
timer = rt_list_entry(timer_list->next, struct rt_timer, list);
return timer->timeout_tick;
}