summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libtrivfs/io-restrict-auth.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/libtrivfs/io-restrict-auth.c b/libtrivfs/io-restrict-auth.c
index 7d4d0f7a..7f24b2a2 100644
--- a/libtrivfs/io-restrict-auth.c
+++ b/libtrivfs/io-restrict-auth.c
@@ -20,21 +20,22 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
/* Written by Michael I. Bushnell. */
#include "priv.h"
+#include "io_S.h"
-error_t
-trivfs_S_io_restrict_auth (struct protid *cred,
+kern_return_t
+trivfs_S_io_restrict_auth (struct trivfs_protid *cred,
mach_port_t *newport,
mach_msg_type_name_t *newporttype,
uid_t *uids, u_int nuids,
uid_t *gids, u_int ngids)
{
- struct protid *newcred;
+ struct trivfs_protid *newcred;
int i;
if (!cred)
return EOPNOTSUPP;
- newcred = ports_allocate_port (sizeof (struct protid),
+ newcred = ports_allocate_port (sizeof (struct trivfs_protid),
trivfs_protid_porttype);
newcred->isroot = 0;
newcred->cntl = cred->cntl;