diff options
author | 2003-04-16 07:51:22 +0000 | |
---|---|---|
committer | 2003-04-16 07:51:22 +0000 | |
commit | ce8884e1999de217a6f8bc28bdce4865aa860fff (patch) | |
tree | 04f5f6fdf2cb133535c5b1f836d1842abb0e736e /share/man/man3/queue.3 | |
parent | small fix to compile. spot by marc@ (diff) | |
download | wireguard-openbsd-ce8884e1999de217a6f8bc28bdce4865aa860fff.tar.xz wireguard-openbsd-ce8884e1999de217a6f8bc28bdce4865aa860fff.zip |
fix an example on SIMPLEQ_REMOVE_HEAD(); from cjeker@diehard.n-r-g.com
Diffstat (limited to 'share/man/man3/queue.3')
-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 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 |