summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2002-02-24 04:35:33 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2002-02-24 04:35:33 +0000
commit0e8b103b50273871e626b9ea1db0c891e46dd998 (patch)
tree8b34ce36dff3b68860340d4a34195c29e4d30efa
parent09697821624d867f61260a7298c6fcf1b03b694c (diff)
Fix TAILQ_NEXT() example. First param is listelm, not head.
-rw-r--r--share/man/man3/queue.34
1 files changed, 2 insertions, 2 deletions
diff --git a/share/man/man3/queue.3 b/share/man/man3/queue.3
index 0535b18e192..e2586630839 100644
--- a/share/man/man3/queue.3
+++ b/share/man/man3/queue.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: queue.3,v 1.21 2002/02/03 16:36:40 jason Exp $
+.\" $OpenBSD: queue.3,v 1.22 2002/02/24 04:35:32 krw Exp $
.\" $NetBSD: queue.3,v 1.4 1995/07/03 00:25:36 mycroft Exp $
.\"
.\" Copyright (c) 1993 The Regents of the University of California.
@@ -846,7 +846,7 @@ TAILQ_INSERT_AFTER(&head, n1, n2, entries);
n2 = malloc(sizeof(struct entry)); /* Insert before. */
TAILQ_INSERT_BEFORE(n1, n2, entries);
/* Forward traversal. */
-for (np = TAILQ_FIRST(&head); np; np = TAILQ_NEXT(&head, entries))
+for (np = TAILQ_FIRST(&head); np; np = TAILQ_NEXT(np, entries))
np-> ...
/* Delete. */
while (np = TAILQ_FIRST(&head))