diff options
| author | Bernard Xiong <[email protected]> | 2021-05-27 16:51:23 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-05-27 16:51:23 +0800 |
| commit | 3481080cd81d85d6ed4f0cb76f18384e54cb69a5 (patch) | |
| tree | a97562c0fa8f05f63fe2d606f976d8b8702f9f61 /src | |
| parent | 17cae02ad5e67a4dabcfa431dee2d10d2d8bcbed (diff) | |
| parent | cd326d849a745c824c3ff2f0a22b25be4ba04d60 (diff) | |
Merge pull request #4729 from yangjie11/kernel-list
[src]移除 C99 依赖
Diffstat (limited to 'src')
| -rw-r--r-- | src/timer.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/timer.c b/src/timer.c index 836df51e06..9b0db6c6a5 100644 --- a/src/timer.c +++ b/src/timer.c @@ -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")); |
