summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libdiskfs/io-async-icky.c6
-rw-r--r--libdiskfs/io-map-cntl.c6
2 files changed, 8 insertions, 4 deletions
diff --git a/libdiskfs/io-async-icky.c b/libdiskfs/io-async-icky.c
index 390d6d03..93ef8f50 100644
--- a/libdiskfs/io-async-icky.c
+++ b/libdiskfs/io-async-icky.c
@@ -19,10 +19,12 @@
#include "io_S.h"
/* Implement io_get_icky_async_id as described in <hurd/io.defs>. */
-error_t
+kern_return_t
diskfs_S_io_get_icky_async_id (struct protid *cred,
- mach_port_t *idport)
+ mach_port_t *idport,
+ mach_msg_type_name_t *idport_type)
{
*idport = MACH_PORT_NULL;
+ *idport_type = MACH_MSG_TYPE_COPY_SEND;
return 0;
}
diff --git a/libdiskfs/io-map-cntl.c b/libdiskfs/io-map-cntl.c
index ac30e718..455da0e6 100644
--- a/libdiskfs/io-map-cntl.c
+++ b/libdiskfs/io-map-cntl.c
@@ -20,9 +20,10 @@
#include <mach/default_pager.h>
/* Implement io_map_cntl as described in <hurd/io.defs>. */
-error_t
+kern_return_t
diskfs_S_io_map_cntl (struct protid *cred,
- memory_object_t *ctlobj)
+ memory_object_t *ctlobj,
+ mach_msg_type_name_t *ctlobj_type)
{
if (!cred)
return EOPNOTSUPP;
@@ -39,6 +40,7 @@ diskfs_S_io_map_cntl (struct protid *cred,
cred->mapped->conch_status = USER_HAS_NOT_CONCH;
spin_lock_init (&cred->mapped->lock);
*ctlobj = cred->shared_object;
+ *ctlobj_type = MACH_MSG_TYPE_COPY_SEND;
mutex_unlock (&cred->po->np->lock);
return 0;
}