summaryrefslogtreecommitdiff
path: root/ipc
diff options
context:
space:
mode:
Diffstat (limited to 'ipc')
-rw-r--r--ipc/ipc_hash.c2
-rw-r--r--ipc/ipc_notify.c6
-rw-r--r--ipc/mach_msg.c4
-rw-r--r--ipc/mach_port.c4
4 files changed, 8 insertions, 8 deletions
diff --git a/ipc/ipc_hash.c b/ipc/ipc_hash.c
index ad05016..5eec58c 100644
--- a/ipc/ipc_hash.c
+++ b/ipc/ipc_hash.c
@@ -326,7 +326,7 @@ ipc_hash_global_delete(
*/
#define IH_LOCAL_HASH(obj, size) \
- ((((mach_port_index_t) (obj)) >> 6) % (size))
+ ((((mach_port_index_t) (vm_offset_t) (obj)) >> 6) % (size))
/*
* Routine: ipc_hash_local_lookup
diff --git a/ipc/ipc_notify.c b/ipc/ipc_notify.c
index d06346e..25fa421 100644
--- a/ipc/ipc_notify.c
+++ b/ipc/ipc_notify.c
@@ -264,7 +264,7 @@ ipc_notify_port_deleted(port, name)
kmsg = ikm_alloc(sizeof *n);
if (kmsg == IKM_NULL) {
- printf("dropped port-deleted (0x%p, 0x%x)\n", port, name);
+ printf("dropped port-deleted (0x%p, 0x%lx)\n", port, name);
ipc_port_release_sonce(port);
return;
}
@@ -298,7 +298,7 @@ ipc_notify_msg_accepted(port, name)
kmsg = ikm_alloc(sizeof *n);
if (kmsg == IKM_NULL) {
- printf("dropped msg-accepted (0x%p, 0x%x)\n", port, name);
+ printf("dropped msg-accepted (0x%p, 0x%lx)\n", port, name);
ipc_port_release_sonce(port);
return;
}
@@ -437,7 +437,7 @@ ipc_notify_dead_name(port, name)
kmsg = ikm_alloc(sizeof *n);
if (kmsg == IKM_NULL) {
- printf("dropped dead-name (0x%p, 0x%x)\n", port, name);
+ printf("dropped dead-name (0x%p, 0x%lx)\n", port, name);
ipc_port_release_sonce(port);
return;
}
diff --git a/ipc/mach_msg.c b/ipc/mach_msg.c
index 43ae918..00ab085 100644
--- a/ipc/mach_msg.c
+++ b/ipc/mach_msg.c
@@ -218,7 +218,7 @@ mach_msg_receive(msg, option, rcv_size, rcv_name, time_out, notify)
if (mr != MACH_MSG_SUCCESS) {
if (mr == MACH_RCV_TOO_LARGE) {
mach_msg_size_t real_size =
- (mach_msg_size_t) (natural_t) kmsg;
+ (mach_msg_size_t) (vm_offset_t) kmsg;
assert(real_size > rcv_size);
@@ -309,7 +309,7 @@ mach_msg_receive_continue(void)
if (mr != MACH_MSG_SUCCESS) {
if (mr == MACH_RCV_TOO_LARGE) {
mach_msg_size_t real_size =
- (mach_msg_size_t) (natural_t) kmsg;
+ (mach_msg_size_t) (vm_offset_t) kmsg;
assert(real_size > rcv_size);
diff --git a/ipc/mach_port.c b/ipc/mach_port.c
index c5688c9..d0310b5 100644
--- a/ipc/mach_port.c
+++ b/ipc/mach_port.c
@@ -571,7 +571,7 @@ mach_port_destroy(
kr = ipc_right_lookup_write(space, name, &entry);
if (kr != KERN_SUCCESS) {
if (name != MACH_PORT_NULL && name != MACH_PORT_DEAD && space == current_space()) {
- printf("task %p destroying an invalid port %u, most probably a bug.\n", current_task(), name);
+ printf("task %p destroying an invalid port %lu, most probably a bug.\n", current_task(), name);
if (mach_port_deallocate_debug)
SoftDebugger("mach_port_deallocate");
}
@@ -615,7 +615,7 @@ mach_port_deallocate(
kr = ipc_right_lookup_write(space, name, &entry);
if (kr != KERN_SUCCESS) {
if (name != MACH_PORT_NULL && name != MACH_PORT_DEAD && space == current_space()) {
- printf("task %p deallocating an invalid port %u, most probably a bug.\n", current_task(), name);
+ printf("task %p deallocating an invalid port %lu, most probably a bug.\n", current_task(), name);
if (mach_port_deallocate_debug)
SoftDebugger("mach_port_deallocate");
}