File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments