changeset 98:c0388006bb0d

Fixes for FreeBSD.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Sun, 04 Aug 2002 09:52:41 +0000
parents 24cf41bb75ff
children 02bbe1f397bb
files compat.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/compat.c	Fri Jul 19 14:17:02 2002 +0000
+++ b/compat.c	Sun Aug 04 09:52:41 2002 +0000
@@ -257,6 +257,7 @@
 	{
 		if(index == drive)
 			return (fsp->f_bsize * fsp->f_bavail) / 1024;
+		index++;
 	}
 	return 0;
 #elif defined(__sun__)
@@ -365,6 +366,7 @@
 	{
 		if(index == drive)
 			return (fsp->f_bsize * fsp->f_blocks) / 1024;
+		index++;
 	}
 	return 0;
 #elif defined(__sun__)
@@ -458,6 +460,7 @@
 	{
 		if(index == drive && fsp->f_blocks)
 			return 1;
+		index++;
 	}
 	return 0;
 #elif defined(__sun__)
@@ -529,6 +532,7 @@
 	{
 		if(index == drive)
 			strncpy(buf, fsp->f_mntonname, len);
+		index++;
 	}
 #elif defined(__sun__)
 	FILE *fp = fopen("/etc/mnttab", "r");