diff --git a/include/rtservice.h b/include/rtservice.h index 7c7982da00aab7b1cc3b9523fcb92d4bbafe8cdd..3eec1469601bfe9ea1f4680b634193994e745716 100644 --- a/include/rtservice.h +++ b/include/rtservice.h @@ -250,7 +250,7 @@ rt_inline int rt_slist_isempty(rt_slist_t *l) * @head: the head for your single list. * @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); \ &pos->member != (RT_NULL); \ pos = rt_slist_entry(pos->member.next, typeof(*pos), member))