summaryrefslogtreecommitdiff
path: root/libports
diff options
context:
space:
mode:
authorFlavio Cruz <flaviocruz@gmail.com>2023-12-14 01:06:37 -0500
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2023-12-17 23:57:00 +0100
commit6b494f5e7599ece2ca981472d690db3df3133bde (patch)
tree82ea19a196c6e4c8c53ddce4d1528e92b9751cb1 /libports
parentb1d240be9b36a1db738e1357081987873be94636 (diff)
Update server handlers to return kern_return_error to fix -Werror=enum-int-mismatch warnings
MiG expects those to return kern_return_t. Message-ID: <ZXqbbXpVqQAwd2qv@jupiter.tail36e24.ts.net>
Diffstat (limited to 'libports')
-rw-r--r--libports/notify-dead-name.c2
-rw-r--r--libports/notify-msg-accepted.c2
-rw-r--r--libports/notify-no-senders.c2
-rw-r--r--libports/notify-port-deleted.c2
-rw-r--r--libports/notify-port-destroyed.c2
-rw-r--r--libports/notify-send-once.c2
6 files changed, 6 insertions, 6 deletions
diff --git a/libports/notify-dead-name.c b/libports/notify-dead-name.c
index 8d79a631..e48edd9b 100644
--- a/libports/notify-dead-name.c
+++ b/libports/notify-dead-name.c
@@ -21,7 +21,7 @@
#include "ports.h"
#include "notify_S.h"
-error_t
+kern_return_t
ports_do_mach_notify_dead_name (struct port_info *pi,
mach_port_t dead_name)
{
diff --git a/libports/notify-msg-accepted.c b/libports/notify-msg-accepted.c
index 769d00f1..dbdde09e 100644
--- a/libports/notify-msg-accepted.c
+++ b/libports/notify-msg-accepted.c
@@ -21,7 +21,7 @@
#include "ports.h"
#include "notify_S.h"
-error_t
+kern_return_t
ports_do_mach_notify_msg_accepted (struct port_info *pi,
mach_port_t name)
{
diff --git a/libports/notify-no-senders.c b/libports/notify-no-senders.c
index cf0b386a..0d64c544 100644
--- a/libports/notify-no-senders.c
+++ b/libports/notify-no-senders.c
@@ -22,7 +22,7 @@
#include "ports.h"
#include "notify_S.h"
-error_t
+kern_return_t
ports_do_mach_notify_no_senders (struct port_info *pi,
mach_port_mscount_t count)
{
diff --git a/libports/notify-port-deleted.c b/libports/notify-port-deleted.c
index 33ecc251..f17f143d 100644
--- a/libports/notify-port-deleted.c
+++ b/libports/notify-port-deleted.c
@@ -21,7 +21,7 @@
#include "ports.h"
#include "notify_S.h"
-error_t
+kern_return_t
ports_do_mach_notify_port_deleted (struct port_info *pi,
mach_port_t name)
{
diff --git a/libports/notify-port-destroyed.c b/libports/notify-port-destroyed.c
index b49aad24..5260922c 100644
--- a/libports/notify-port-destroyed.c
+++ b/libports/notify-port-destroyed.c
@@ -21,7 +21,7 @@
#include "ports.h"
#include "notify_S.h"
-error_t
+kern_return_t
ports_do_mach_notify_port_destroyed (struct port_info *pi,
mach_port_t name)
{
diff --git a/libports/notify-send-once.c b/libports/notify-send-once.c
index a680802a..132b7c26 100644
--- a/libports/notify-send-once.c
+++ b/libports/notify-send-once.c
@@ -21,7 +21,7 @@
#include "ports.h"
#include "notify_S.h"
-error_t
+kern_return_t
ports_do_mach_notify_send_once (struct port_info *pi)
{
return EOPNOTSUPP;