summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2003-04-16 07:51:23 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2003-04-16 07:51:23 +0000
commit0a426a4c3cd06fa9384598731c4c11e6213d53ef (patch)
tree30966c16802dbbcbf8bb39a0322a96499321d795
parent0c0bcfdc8debc259d7b3733f2dad1a4d4b2994e6 (diff)
fix an example on SIMPLEQ_REMOVE_HEAD(); from cjeker@diehard.n-r-g.com
-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 d843453b128..8557c834847 100644
--- a/share/man/man3/queue.3
+++ b/share/man/man3/queue.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: queue.3,v 1.27 2003/03/09 17:18:44 millert Exp $
+.\" $OpenBSD: queue.3,v 1.28 2003/04/16 07:51:22 mickey 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.
@@ -715,7 +715,7 @@ SIMPLEQ_INSERT_TAIL(&head, n1, entries);
for (np = SIMPLEQ_FIRST(&head); np != NULL; np = SIMPLEQ_NEXT(np, entries))
np-> ...
/* Delete. */
-while (SIMPLEQ_FIRST(&head) != NULL)
+while ((n1 = SIMPLEQ_FIRST(&head)) != NULL)
SIMPLEQ_REMOVE_HEAD(&head, n1, entries);
.Ed
.Sh TAIL QUEUES