From 3af13de6a5bb3258358265b741e02678c9f828cc Mon Sep 17 00:00:00 2001 From: bupleurum Date: Mon, 21 May 2018 19:41:13 +0800 Subject: [PATCH] Update rtservice.h --- include/rtservice.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/rtservice.h b/include/rtservice.h index 7c7982da00..3eec146960 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))