未验证 提交 e6cbf2de 编写于 作者: B Bernard Xiong 提交者: GitHub

Merge pull request #1461 from bupleurum/patch-1

[kernel] Fix misspellings in rtservice.h
...@@ -250,7 +250,7 @@ rt_inline int rt_slist_isempty(rt_slist_t *l) ...@@ -250,7 +250,7 @@ rt_inline int rt_slist_isempty(rt_slist_t *l)
* @head: the head for your single list. * @head: the head for your single list.
* @member: the name of the list_struct within the struct. * @member: the name of the list_struct within the struct.
*/ */
#define rt_slist_fore_each_entry(pos, head, member) \ #define rt_slist_for_each_entry(pos, head, member) \
for (pos = rt_slist_entry((head)->next, typeof(*pos), member); \ for (pos = rt_slist_entry((head)->next, typeof(*pos), member); \
&pos->member != (RT_NULL); \ &pos->member != (RT_NULL); \
pos = rt_slist_entry(pos->member.next, typeof(*pos), member)) pos = rt_slist_entry(pos->member.next, typeof(*pos), member))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册