Update rtservice.h

This commit is contained in:
bupleurum 2018-05-21 19:41:13 +08:00 committed by GitHub
parent 3a6eace914
commit 3af13de6a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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))