From 448889a4f0c32ba8ea61f870d4edcb0e0d58af85 Mon Sep 17 00:00:00 2001 From: Flavio Cruz Date: Tue, 20 Dec 2022 20:01:02 -0500 Subject: Use -Wstrict-prototypes and fix warnings Most of the changes include defining and using proper function type declarations (with argument types declared) and avoiding using the K&R style of function declarations. Message-Id: --- ipc/ipc_mqueue.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ipc/ipc_mqueue.c') diff --git a/ipc/ipc_mqueue.c b/ipc/ipc_mqueue.c index a371a625..ac6bed51 100644 --- a/ipc/ipc_mqueue.c +++ b/ipc/ipc_mqueue.c @@ -259,7 +259,7 @@ ipc_mqueue_send( ip_unlock(port); counter(c_ipc_mqueue_send_block++); - thread_block((void (*)(void)) 0); + thread_block(thread_no_continuation); ip_lock(port); /* why did we wake up? */ @@ -520,7 +520,7 @@ ipc_mqueue_receive( mach_msg_size_t max_size, mach_msg_timeout_t time_out, boolean_t resume, - void (*continuation)(void), + continuation_t continuation, ipc_kmsg_t *kmsgp, mach_port_seqno_t *seqnop) { -- cgit v1.2.3