Skip to content

Commit

Permalink
Update rtservice.h
Browse files Browse the repository at this point in the history
  • Loading branch information
0xchaihu authored May 21, 2018
1 parent 3a6eace commit 3af13de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/rtservice.h
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 3af13de

Please sign in to comment.