From e591ac4f3e8dbee039a6a8eb61ca36b3852e6097 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Tue, 24 May 1994 21:54:41 +0000 Subject: Formerly fsys-getroot.c.~4~ --- libtrivfs/fsys-getroot.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'libtrivfs/fsys-getroot.c') diff --git a/libtrivfs/fsys-getroot.c b/libtrivfs/fsys-getroot.c index 9812ba96..565d75e5 100644 --- a/libtrivfs/fsys-getroot.c +++ b/libtrivfs/fsys-getroot.c @@ -20,8 +20,11 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ /* Written by Michael I. Bushnell. */ #include "priv.h" +#include "fsys_S.h" +#include +#include -error_t +kern_return_t trivfs_S_fsys_getroot (mach_port_t fsys, int flags, uid_t *uids, u_int nuids, @@ -29,7 +32,7 @@ trivfs_S_fsys_getroot (mach_port_t fsys, mach_port_t *newpt, mach_msg_type_name_t *newpttype) { - struct protid *cred; + struct trivfs_protid *cred; int i; struct control *cntl; @@ -46,7 +49,8 @@ trivfs_S_fsys_getroot (mach_port_t fsys, return EACCES; } - cred = ports_allocate_port (sizeof (struct protid), trivfs_protid_porttype); + cred = ports_allocate_port (sizeof (struct trivfs_protid), + trivfs_protid_porttype); cred->isroot = 0; for (i = 0; i < nuids; i++) if (uids[i] == 0) -- cgit v1.2.3