Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sbin/fsck use TAILQ_xxx instead of referencing tqe_xxx eleme...
details: https://anonhg.NetBSD.org/src/rev/ffbd0b704bec
branches: trunk
changeset: 511331:ffbd0b704bec
user: lukem <lukem%NetBSD.org@localhost>
date: Mon Jun 18 02:43:32 2001 +0000
description:
use TAILQ_xxx instead of referencing tqe_xxx elements directly
diffstat:
sbin/fsck/preen.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diffs (44 lines):
diff -r 49e61fcdc8fe -r ffbd0b704bec sbin/fsck/preen.c
--- a/sbin/fsck/preen.c Mon Jun 18 02:31:09 2001 +0000
+++ b/sbin/fsck/preen.c Mon Jun 18 02:43:32 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: preen.c,v 1.20 2001/06/18 02:31:09 lukem Exp $ */
+/* $NetBSD: preen.c,v 1.21 2001/06/18 02:43:32 lukem Exp $ */
/*
* Copyright (c) 1990, 1993
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)preen.c 8.5 (Berkeley) 4/28/95";
#else
-__RCSID("$NetBSD: preen.c,v 1.20 2001/06/18 02:31:09 lukem Exp $");
+__RCSID("$NetBSD: preen.c,v 1.21 2001/06/18 02:43:32 lukem Exp $");
#endif
#endif /* not lint */
@@ -153,7 +153,7 @@
for (passno = 0; passno < maxrun; ++passno) {
if ((ret = startdisk(nextdisk, checkit)) != 0)
return ret;
- nextdisk = nextdisk->d_entries.tqe_next;
+ nextdisk = TAILQ_NEXT(nextdisk, d_entries);
}
while ((pid = wait(&status)) != -1) {
@@ -230,13 +230,13 @@
(void) fprintf(stderr,
"THE FOLLOWING FILE SYSTEM%s HAD AN %s\n\t",
- p->p_entries.tqe_next ? "S" : "",
+ TAILQ_NEXT(p, p_entries) ? "S" : "",
"UNEXPECTED INCONSISTENCY:");
- for (; p; p = p->p_entries.tqe_next)
+ TAILQ_FOREACH(p, &badh, p_entries)
(void) fprintf(stderr,
"%s: %s (%s)%s", p->p_type, p->p_devname,
- p->p_mntpt, p->p_entries.tqe_next ? ", " : "\n");
+ p->p_mntpt, TAILQ_NEXT(p, p_entries) ? ", " : "\n");
return sumstatus;
}
Home |
Main Index |
Thread Index |
Old Index