Skip to content

Commit c30630d

Browse files
authored
Merge pull request #4730 from yangjie11/lts-k-dev
[lts-3.1.x][src]移除 c99 依赖
2 parents f380ad2 + 3eb4ec2 commit c30630d

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/timer.c

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2006-2018, RT-Thread Development Team
2+
* Copyright (c) 2006-2021, RT-Thread Development Team
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*
@@ -531,7 +531,9 @@ void rt_timer_check(void)
531531
struct rt_timer *t;
532532
rt_tick_t current_tick;
533533
register rt_base_t level;
534-
rt_list_t list = RT_LIST_OBJECT_INIT(list);
534+
rt_list_t list;
535+
536+
rt_list_init(&list);
535537

536538
RT_DEBUG_LOG(RT_DEBUG_TIMER, ("timer check enter\n"));
537539

@@ -613,7 +615,9 @@ void rt_soft_timer_check(void)
613615
rt_tick_t current_tick;
614616
struct rt_timer *t;
615617
register rt_base_t level;
616-
rt_list_t list = RT_LIST_OBJECT_INIT(list);
618+
rt_list_t list;
619+
620+
rt_list_init(&list);
617621

618622
RT_DEBUG_LOG(RT_DEBUG_TIMER, ("software timer check enter\n"));
619623

0 commit comments

Comments
 (0)