summaryrefslogtreecommitdiff
path: root/libtrivfs
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1995-06-27 15:05:56 +0000
committerMichael I. Bushnell <mib@gnu.org>1995-06-27 15:05:56 +0000
commitd3901c7d2245d158fd9500e3efee12db73171c1d (patch)
treebdc2d75362b0c8dbdf3ebe2b13b3a5f305e0bb64 /libtrivfs
parenta17de848416ff3328a86fc6f9999db7f03707bfb (diff)
(trivfs_S_io_duplicate): Use new ports interface.
Diffstat (limited to 'libtrivfs')
-rw-r--r--libtrivfs/io-duplicate.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libtrivfs/io-duplicate.c b/libtrivfs/io-duplicate.c
index 26fb0673..787fbc08 100644
--- a/libtrivfs/io-duplicate.c
+++ b/libtrivfs/io-duplicate.c
@@ -35,7 +35,9 @@ trivfs_S_io_duplicate (struct trivfs_protid *cred,
if (!cred)
return EOPNOTSUPP;
- newcred = ports_allocate_port (sizeof (struct trivfs_protid), cred->pi.type);
+ newcred = ports_allocate_port (cred->po->cntl->protid_bucket,
+ sizeof (struct trivfs_protid),
+ cred->po->cntl->protid_class);
newcred->realnode = cred->realnode;
newcred->isroot = cred->isroot;
mutex_lock (&cred->po->cntl->lock);