aboutsummaryrefslogtreecommitdiff
path: root/kern/ipc_tt.c
diff options
context:
space:
mode:
authorFlavio Cruz <flaviocruz@gmail.com>2023-01-17 23:56:04 -0500
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2023-01-19 00:55:04 +0100
commit2029728ed6d2a88350be945a892d325aebc2eb8d (patch)
tree5cdae89a531f8d10e08b39491c7c8e64cff3f9b0 /kern/ipc_tt.c
parentfc6bcf785b702e7e8a675ea0fe9856cc1b24b8f6 (diff)
downloadgnumach-2029728ed6d2a88350be945a892d325aebc2eb8d.tar.gz
gnumach-2029728ed6d2a88350be945a892d325aebc2eb8d.tar.bz2
gnumach-2029728ed6d2a88350be945a892d325aebc2eb8d.zip
Include mig generated headers to avoid warnings with -Wmissing-prototypes.
This also reverts 566c227636481b246d928772ebeaacbc7c37145b and 963b1794d7117064cee8ab5638b329db51dad854 Message-Id: <Y8d75KSqNL4FFInm@mercury.tail36e24.ts.net>
Diffstat (limited to 'kern/ipc_tt.c')
-rw-r--r--kern/ipc_tt.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/kern/ipc_tt.c b/kern/ipc_tt.c
index 63f6e77a..7c9a0b8d 100644
--- a/kern/ipc_tt.c
+++ b/kern/ipc_tt.c
@@ -42,6 +42,7 @@
#include <kern/thread.h>
#include <kern/ipc_kobject.h>
#include <kern/ipc_tt.h>
+#include <kern/mach.server.h>
#include <ipc/ipc_space.h>
#include <ipc/ipc_table.h>
#include <ipc/ipc_port.h>
@@ -888,7 +889,7 @@ mach_ports_register(
kern_return_t
mach_ports_lookup(
task_t task,
- ipc_port_t **portsp,
+ mach_port_t **portsp,
mach_msg_type_number_t *portsCnt)
{
vm_offset_t memory;
@@ -925,7 +926,7 @@ mach_ports_lookup(
itk_unlock(task);
- *portsp = ports;
+ *portsp = (mach_port_t *)ports;
*portsCnt = TASK_PORT_REGISTER_MAX;
return KERN_SUCCESS;
}