From cb4eae5c261acf97f374e7b2779c49cd901663be Mon Sep 17 00:00:00 2001 From: Wilbern Cobb Date: Fri, 26 Apr 2002 02:24:49 +0000 Subject: add missing `entry' parameter to LIST_NEXT() in the list freeing example. ok espie. --- share/man/man3/queue.3 | 4 ++-- 1 file 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 */ -- cgit v1.2.3