44 lines
1.1 KiB
Text
44 lines
1.1 KiB
Text
$NetBSD: patch-al,v 1.2 2006/03/23 13:41:41 joerg Exp $
|
|
|
|
--- src/filesys-os.c.orig 1999-08-04 11:57:33.000000000 -0400
|
|
+++ src/filesys-os.c 2004-05-30 22:10:03.000000000 -0400
|
|
@@ -49,7 +49,7 @@
|
|
*/
|
|
|
|
#if FSI_TYPE == FSI_GETFSSTAT
|
|
-static struct statfs *mnt = NULL;
|
|
+static statfs_t *mnt = NULL;
|
|
#endif /* FSI_GETFSSTAT */
|
|
|
|
#if FSI_TYPE == FSI_MNTCTL
|
|
@@ -101,17 +101,17 @@
|
|
if (mntbuf)
|
|
(void) free(mntbuf);
|
|
|
|
- size = getfsstat((struct statfs *) NULL, 0, MNT_WAIT);
|
|
+ size = getfsstat((statfs_t *) NULL, 0, MNT_WAIT);
|
|
if (size == -1)
|
|
return (NULL);
|
|
- size *= sizeof(struct statfs);
|
|
+ size *= sizeof(statfs_t);
|
|
mntbuf = (char *) xmalloc(size);
|
|
|
|
- entries_left = getfsstat((struct statfs *)mntbuf, size, MNT_WAIT);
|
|
+ entries_left = getfsstat((statfs_t *)mntbuf, size, MNT_WAIT);
|
|
if (entries_left == -1)
|
|
return((FILE *) NULL);
|
|
|
|
- mnt = (struct statfs *) mntbuf;
|
|
+ mnt = (statfs_t *) mntbuf;
|
|
|
|
return((FILE *) 1);
|
|
}
|
|
@@ -195,7 +195,7 @@
|
|
mntstruct.me_type = METYPE_OTHER;
|
|
}
|
|
|
|
- mnt = (struct statfs*)(sizeof(struct statfs)+(ulong)mnt);
|
|
+ mnt = (statfs_t *)(sizeof(statfs_t)+(unsigned long)mnt);
|
|
entries_left--;
|
|
|
|
return(&mntstruct);
|