summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2008-11-13 16:35:42 +0000
committerDimitri Sokolyuk <demon@dim13.org>2008-11-13 16:35:42 +0000
commit84eaf6e55c974b7f13fee5cd608fca366353b56f (patch)
tree077e5ef3e89032dd6cd59c7227deac9d0dae70d8
parent4325c036fca0264d64212c6c837616387818d752 (diff)
sync
-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);
/*