From 84e0fb3f287864eca3a9322ef364b913f6a260bd Mon Sep 17 00:00:00 2001 From: Flavio Cruz Date: Sun, 25 Dec 2022 20:41:46 -0500 Subject: Fix some warnings with -Wmissing-prototypes. Marked some functions as static (private) as needed and added missing includes. This also revealed some dead code which was removed. Note that -Wmissing-prototypes is not enabled here since there is a bunch more warnings. Message-Id: --- ipc/ipc_notify.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'ipc/ipc_notify.c') diff --git a/ipc/ipc_notify.c b/ipc/ipc_notify.c index 1fff8ead..eea60116 100644 --- a/ipc/ipc_notify.c +++ b/ipc/ipc_notify.c @@ -58,7 +58,7 @@ mach_dead_name_notification_t ipc_notify_dead_name_template; * Initialize a template for port-deleted notifications. */ -void +static void ipc_notify_init_port_deleted(mach_port_deleted_notification_t *n) { mach_msg_header_t *m = &n->not_header; @@ -88,7 +88,7 @@ ipc_notify_init_port_deleted(mach_port_deleted_notification_t *n) * Initialize a template for msg-accepted notifications. */ -void +static void ipc_notify_init_msg_accepted(mach_msg_accepted_notification_t *n) { mach_msg_header_t *m = &n->not_header; @@ -118,7 +118,7 @@ ipc_notify_init_msg_accepted(mach_msg_accepted_notification_t *n) * Initialize a template for port-destroyed notifications. */ -void +static void ipc_notify_init_port_destroyed(mach_port_destroyed_notification_t *n) { mach_msg_header_t *m = &n->not_header; @@ -149,7 +149,7 @@ ipc_notify_init_port_destroyed(mach_port_destroyed_notification_t *n) * Initialize a template for no-senders notifications. */ -void +static void ipc_notify_init_no_senders( mach_no_senders_notification_t *n) { @@ -180,7 +180,7 @@ ipc_notify_init_no_senders( * Initialize a template for send-once notifications. */ -void +static void ipc_notify_init_send_once( mach_send_once_notification_t *n) { @@ -200,7 +200,7 @@ ipc_notify_init_send_once( * Initialize a template for dead-name notifications. */ -void +static void ipc_notify_init_dead_name( mach_dead_name_notification_t *n) { -- cgit v1.2.3