diff options
Diffstat (limited to 'libtrivfs')
-rw-r--r-- | libtrivfs/io-duplicate.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/libtrivfs/io-duplicate.c b/libtrivfs/io-duplicate.c index 9cdefa71..6cd50966 100644 --- a/libtrivfs/io-duplicate.c +++ b/libtrivfs/io-duplicate.c @@ -20,18 +20,19 @@ 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_duplicate (struct protid *cred, +kern_return_t +trivfs_S_io_duplicate (struct trivfs_protid *cred, mach_port_t *newport, mach_msg_type_name_t *newporttype) { - struct protid *newcred; + struct trivfs_protid *newcred; if (!cred) return EOPNOTSUPP; - newcred = ports_allocate_port (sizeof (struct protid), + newcred = ports_allocate_port (sizeof (struct trivfs_protid), trivfs_protid_porttype); newcred->realnode = cred->realnode; newcred->isroot = cred->isroot; |