diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 1996-05-14 18:24:22 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 1996-05-14 18:24:22 +0000 |
commit | 581600fa03dc52c678764d4d243a7df7a6ed3c11 (patch) | |
tree | 9224eb3808128fe17a4c10d8a77a12aa0b1d099e /sys | |
parent | c3cac3d6693e25fcf0d43327069a28ce0894a5af (diff) |
fix NetBSD PR#1145.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/vfs_syscalls.c | 10 |
1 files changed, 5 insertions, 5 deletions
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; |