diff options
| author | [email protected] <[email protected]> | 2012-06-02 08:40:29 +0000 |
|---|---|---|
| committer | [email protected] <[email protected]> | 2012-06-02 08:40:29 +0000 |
| commit | 907bb8c7fde7da259f5b817af87a79c42b8932d0 (patch) | |
| tree | 0da10f73b0009fcacc16151d7b51775d6c75007b /src/timer.c | |
| parent | 7b6828b2b55b1356150f64c42403ed27f138dd07 (diff) | |
unify coding style in timer.c
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2149 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'src/timer.c')
| -rw-r--r-- | src/timer.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/timer.c b/src/timer.c index 9e4d73e41c..78079ebc81 100644 --- a/src/timer.c +++ b/src/timer.c @@ -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; } |
