diff options
author | Christiano F. Haesbaert <haesbaert@cvs.openbsd.org> | 2012-03-06 23:42:00 +0000 |
---|---|---|
committer | Christiano F. Haesbaert <haesbaert@cvs.openbsd.org> | 2012-03-06 23:42:00 +0000 |
commit | 3a6003c681f0fc0ebcde538900d95f3c497b1560 (patch) | |
tree | 65e19631c03ffc82787e72ac3a64cc9103aabaca | |
parent | 2e031ce54078daad5eeb78ba90cef04f1346f45e (diff) |
Avoid warning from gcc in TAILQ usage example.
From Lawrence Teo.
-rw-r--r-- | share/man/man3/queue.3 | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/share/man/man3/queue.3 b/share/man/man3/queue.3 index 7b6f755eb9e..dc19e99ba46 100644 --- a/share/man/man3/queue.3 +++ b/share/man/man3/queue.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: queue.3,v 1.54 2012/01/11 19:26:34 bluhm Exp $ +.\" $OpenBSD: queue.3,v 1.55 2012/03/06 23:41:59 haesbaert 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. @@ -30,7 +30,7 @@ .\" .\" @(#)queue.3 8.1 (Berkeley) 12/13/93 .\" -.Dd $Mdocdate: January 11 2012 $ +.Dd $Mdocdate: March 6 2012 $ .Dt QUEUE 3 .Os .Sh NAME @@ -966,7 +966,7 @@ TAILQ_FOREACH(np, &head, entries) for (np = n2; np != NULL; np = TAILQ_NEXT(np, entries)) np-> ... /* Delete. */ -while (np = TAILQ_FIRST(&head)) { +while ((np = TAILQ_FIRST(&head))) { TAILQ_REMOVE(&head, np, entries); free(np); } |