From 953a9fc91e016a294868db62c6ecd4152f9bf5e7 Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Tue, 1 Feb 2005 21:52:11 +0000 Subject: [PATCH] Fix bug in last commit that broke 'df'. 'sfsp' is now a structural pointer so we increment it by one, not by sizeof(*sp). --- sys/kern/vfs_syscalls.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/kern/vfs_syscalls.c b/sys/kern/vfs_syscalls.c index 83ffba8815..e24f1b26e3 100644 --- a/sys/kern/vfs_syscalls.c +++ b/sys/kern/vfs_syscalls.c @@ -37,7 +37,7 @@ * * @(#)vfs_syscalls.c 8.13 (Berkeley) 4/15/94 * $FreeBSD: src/sys/kern/vfs_syscalls.c,v 1.151.2.18 2003/04/04 20:35:58 tegge Exp $ - * $DragonFly: src/sys/kern/vfs_syscalls.c,v 1.56 2005/02/01 13:55:49 joerg Exp $ + * $DragonFly: src/sys/kern/vfs_syscalls.c,v 1.57 2005/02/01 21:52:11 dillon Exp $ */ #include @@ -937,7 +937,7 @@ getfsstat(struct getfsstat_args *uap) vfs_unbusy(mp, td); return (error); } - sfsp += sizeof(*sp); + ++sfsp; } count++; lwkt_gettokref(&ilock); -- 2.41.0