From 581600fa03dc52c678764d4d243a7df7a6ed3c11 Mon Sep 17 00:00:00 2001 From: Michael Shalayeff Date: Tue, 14 May 1996 18:24:22 +0000 Subject: fix NetBSD PR#1145. --- sys/kern/vfs_syscalls.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'sys') diff --git a/sys/kern/vfs_syscalls.c b/sys/kern/vfs_syscalls.c index c577a5f9b15..801c75e245c 100644 --- a/sys/kern/vfs_syscalls.c +++ b/sys/kern/vfs_syscalls.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vfs_syscalls.c,v 1.7 1996/05/02 13:09:53 deraadt Exp $ */ +/* $OpenBSD: vfs_syscalls.c,v 1.8 1996/05/14 18:24:21 mickey Exp $ */ /* $NetBSD: vfs_syscalls.c,v 1.71 1996/04/23 10:29:02 mycroft Exp $ */ /* @@ -565,16 +565,16 @@ sys_getfsstat(p, v, retval) syscallarg(long) bufsize; syscallarg(int) flags; } */ *uap = v; - register struct mount *mp, *nmp; + register struct mount *mp; register struct statfs *sp; caddr_t sfsp; long count, maxcount, error; maxcount = SCARG(uap, bufsize) / sizeof(struct statfs); sfsp = (caddr_t)SCARG(uap, buf); - for (count = 0, - mp = mountlist.cqh_first; mp != (void *)&mountlist; mp = nmp) { - nmp = mp->mnt_list.cqe_next; + for (count = 0, mp = mountlist.cqh_first; + mp != (void *)&mountlist; + mp = mp->mnt_list.cqe_next) { if (sfsp && count < maxcount && ((mp->mnt_flag & MNT_MLOCK) == 0)) { sp = &mp->mnt_stat; -- cgit v1.2.3