diff options
| author | yangjie <[email protected]> | 2021-05-25 20:06:29 +0800 |
|---|---|---|
| committer | yangjie <[email protected]> | 2021-05-25 20:06:29 +0800 |
| commit | 3eb4ec2a3aa86110a2232521ea75f29b0ad73d4e (patch) | |
| tree | 22a4d704e6eeb754b8267732041ea030363cf8fd | |
| parent | 532c604414a7b63c217d407c85bb1a73432f8f82 (diff) | |
[lts-3.1.x][src]移除 c99 依赖
| -rw-r--r-- | src/timer.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/timer.c b/src/timer.c index d882711151..0190f72d07 100644 --- a/src/timer.c +++ b/src/timer.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2006-2018, RT-Thread Development Team + * Copyright (c) 2006-2021, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * @@ -531,7 +531,9 @@ void rt_timer_check(void) struct rt_timer *t; rt_tick_t current_tick; register rt_base_t level; - rt_list_t list = RT_LIST_OBJECT_INIT(list); + rt_list_t list; + + rt_list_init(&list); RT_DEBUG_LOG(RT_DEBUG_TIMER, ("timer check enter\n")); @@ -613,7 +615,9 @@ void rt_soft_timer_check(void) rt_tick_t current_tick; struct rt_timer *t; register rt_base_t level; - rt_list_t list = RT_LIST_OBJECT_INIT(list); + rt_list_t list; + + rt_list_init(&list); RT_DEBUG_LOG(RT_DEBUG_TIMER, ("software timer check enter\n")); |
