summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilbern Cobb <wcobb@cvs.openbsd.org>2002-04-26 02:24:49 +0000
committerWilbern Cobb <wcobb@cvs.openbsd.org>2002-04-26 02:24:49 +0000
commitcb4eae5c261acf97f374e7b2779c49cd901663be (patch)
tree718d181994728da8773146497693182b135fd03a
parent6720bf35d596cd6eaaa53e06a245f7409c866a4f (diff)
add missing `entry' parameter to LIST_NEXT() in the list freeing example.
ok espie.
-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 e2586630839..90139d7ed8b 100644
--- a/share/man/man3/queue.3
+++ b/share/man/man3/queue.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: queue.3,v 1.22 2002/02/24 04:35:32 krw Exp $
+.\" $OpenBSD: queue.3,v 1.23 2002/04/26 02:24:48 wcobb 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.
@@ -1019,7 +1019,7 @@ macro refers to a pointer that may have been reallocated already.
Proper code needs a second variable.
.Bd -literal -offset indent
for (var = LIST_FIRST(head); var != LIST_END(head); var = nxt) {
- nxt = LIST_NEXT(var);
+ nxt = LIST_NEXT(var, entry);
free(var);
}
LIST_INIT(head); /* to put the list back in order */