Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/compat/osf1 fix previous the end of the list is NULL, an...
details: https://anonhg.NetBSD.org/src/rev/29a3c4e87e29
branches: trunk
changeset: 791579:29a3c4e87e29
user: christos <christos%NetBSD.org@localhost>
date: Sat Nov 23 23:30:39 2013 +0000
description:
fix previous the end of the list is NULL, and don't open-code.
diffstat:
sys/compat/osf1/osf1_mount.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r 0df2e8395b57 -r 29a3c4e87e29 sys/compat/osf1/osf1_mount.c
--- a/sys/compat/osf1/osf1_mount.c Sat Nov 23 23:14:55 2013 +0000
+++ b/sys/compat/osf1/osf1_mount.c Sat Nov 23 23:30:39 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: osf1_mount.c,v 1.48 2013/11/23 16:15:25 riz Exp $ */
+/* $NetBSD: osf1_mount.c,v 1.49 2013/11/23 23:30:39 christos Exp $ */
/*
* Copyright (c) 1999 Christopher G. Demetriou. All rights reserved.
@@ -58,7 +58,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: osf1_mount.c,v 1.48 2013/11/23 16:15:25 riz Exp $");
+__KERNEL_RCSID(0, "$NetBSD: osf1_mount.c,v 1.49 2013/11/23 23:30:39 christos Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -144,7 +144,8 @@
maxcount = SCARG(uap, bufsize) / sizeof(struct osf1_statfs);
osf_sfsp = (void *)SCARG(uap, buf);
mutex_enter(&mountlist_lock);
- for (count = 0, mp = mountlist.tqh_first; mp != (void *)&mountlist;
+ for (count = 0, mp = TAILQ_FIRST(&mountlist);
+ mp != TAILQ_END(&mountlist);
mp = nmp) {
if (vfs_busy(mp, &nmp)) {
continue;
Home |
Main Index |
Thread Index |
Old Index