diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2003-03-09 17:18:45 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2003-03-09 17:18:45 +0000 |
commit | f93443308d1a5e151942bcca3536d04c1d798c0d (patch) | |
tree | 5fb8fd52c868bfeab0c7ac3b8b5167edd672b5f9 /share/man | |
parent | 1b23dab2a7287e0a5c424b02f78f2c1e9590e990 (diff) |
Use "np != NULL", not just "np" in TAILQ example for consistency
(and style(9)); from Pedro Bastos
Diffstat (limited to 'share/man')
-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 5e181707cdb..d843453b128 100644 --- a/share/man/man3/queue.3 +++ b/share/man/man3/queue.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: queue.3,v 1.26 2003/01/15 04:18:19 millert Exp $ +.\" $OpenBSD: queue.3,v 1.27 2003/03/09 17:18:44 millert 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. @@ -846,7 +846,7 @@ TAILQ_INSERT_AFTER(&head, n1, n2, entries); n2 = malloc(sizeof(struct entry)); /* Insert before. */ TAILQ_INSERT_BEFORE(n1, n2, entries); /* Forward traversal. */ -for (np = TAILQ_FIRST(&head); np; np = TAILQ_NEXT(np, entries)) +for (np = TAILQ_FIRST(&head); np != NULL; np = TAILQ_NEXT(np, entries)) np-> ... /* Delete. */ while (np = TAILQ_FIRST(&head)) |