Navigation Menu

Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

Commit

Permalink
Make ngx_queue_foreach() impl more explicit.
Browse files Browse the repository at this point in the history
  • Loading branch information
bnoordhuis committed Jun 7, 2012
1 parent 59cda86 commit 053d3af
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion include/uv-private/ngx-queue.h
Expand Up @@ -100,7 +100,9 @@ struct ngx_queue_s {


#define ngx_queue_foreach(q, h) \
for ((q) = ngx_queue_head(h); (q) != (h); (q) = ngx_queue_next(q))
for ((q) = ngx_queue_head(h); \
(q) != ngx_queue_sentinel(h); \
(q) = ngx_queue_next(q))


#endif /* NGX_QUEUE_H_INCLUDED_ */

0 comments on commit 053d3af

Please sign in to comment.