-.\" $OpenBSD: queue.3,v 1.60 2014/09/13 01:09:31 guenther Exp $
+.\" $OpenBSD: queue.3,v 1.61 2015/10/10 20:36:20 tobias 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.
.\"
.\" @(#)queue.3 8.1 (Berkeley) 12/13/93
.\"
-.Dd $Mdocdate: September 13 2014 $
+.Dd $Mdocdate: October 10 2015 $
.Dt QUEUE 3
.Os
.Sh NAME
LIST_FOREACH(np, &head, entries)
np-> ...
-while (!LIST_EMPTY(&head)) /* Delete. */
+while (!LIST_EMPTY(&head)) { /* Delete. */
n1 = LIST_FIRST(&head);
LIST_REMOVE(n1, entries);
free(n1);