summaryrefslogtreecommitdiff
path: root/tailq.c
diff options
context:
space:
mode:
Diffstat (limited to 'tailq.c')
-rw-r--r--tailq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tailq.c b/tailq.c
index de9e312..8501341 100644
--- a/tailq.c
+++ b/tailq.c
@@ -67,7 +67,7 @@ main(void)
* loop through the other way, note the use of tqhead
*/
printf("backwards!\n");
- TAILQ_FOREACH_REVERSE(fp, tqp, f_link, tqhead)
+ TAILQ_FOREACH_REVERSE(fp, tqp, tqhead, f_link)
printf("%d %c\n", fp->f_a, fp->f_b);
/*