From d3901c7d2245d158fd9500e3efee12db73171c1d Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Tue, 27 Jun 1995 15:05:56 +0000 Subject: (trivfs_S_io_duplicate): Use new ports interface. --- libtrivfs/io-duplicate.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); -- cgit v1.2.3