Module Name: src
Committed By: christos
Date: Sat Nov 23 23:30:39 UTC 2013
Modified Files:
src/sys/compat/osf1: osf1_mount.c
Log Message:
fix previous the end of the list is NULL, and don't open-code.
To generate a diff of this commit:
cvs rdiff -u -r1.48 -r1.49 src/sys/compat/osf1/osf1_mount.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/compat/osf1/osf1_mount.c
diff -u src/sys/compat/osf1/osf1_mount.c:1.48 src/sys/compat/osf1/osf1_mount.c:1.49
--- src/sys/compat/osf1/osf1_mount.c:1.48 Sat Nov 23 11:15:25 2013
+++ src/sys/compat/osf1/osf1_mount.c Sat Nov 23 18:30:39 2013
@@ -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 @@ osf1_sys_getfsstat(struct lwp *l, const
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;