summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--simpleq.c2
-rw-r--r--tailq.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/simpleq.c b/simpleq.c
index 8c55c73..93cc0b6 100644
--- a/simpleq.c
+++ b/simpleq.c
@@ -61,7 +61,7 @@ main(void)
* free up our list
*/
while ((fp = SIMPLEQ_FIRST(sqp)) != NULL) {
- SIMPLEQ_REMOVE_HEAD(sqp, fp, f_link);
+ SIMPLEQ_REMOVE_HEAD(sqp, f_link);
free(fp);
}
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);
/*