summaryrefslogtreecommitdiff
path: root/net/rdist6/patches/patch-al
blob: 8c0df01f7a86fa1f2718cb3fd5758e8441650c12 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
$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);