diff options
author | 2002-02-24 04:35:32 +0000 | |
---|---|---|
committer | 2002-02-24 04:35:32 +0000 | |
commit | 80c015cf760b64285694d33531aeb2abb89eac91 (patch) | |
tree | 04b857827ad9de32f03470616fe6ec6f15e39164 | |
parent | sys/types.h is needed as well. (diff) | |
download | wireguard-openbsd-80c015cf760b64285694d33531aeb2abb89eac91.tar.xz wireguard-openbsd-80c015cf760b64285694d33531aeb2abb89eac91.zip |
Fix TAILQ_NEXT() example. First param is listelm, not head.
-rw-r--r-- | share/man/man3/queue.3 | 4 |
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)) |