From 9284ddfd23fe4c328e4ff4243780e2e9c691390b Mon Sep 17 00:00:00 2001 From: Sergey Bugaev Date: Wed, 26 May 2021 18:05:40 +0300 Subject: libports: Return EOPNOTSUPP when appropriate We do not impement most of the mach_notify_* () routines. Explicitly return an error code so that our caller knows to properly deallocate all resources the messages may carry. --- libports/notify-msg-accepted.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libports/notify-msg-accepted.c') diff --git a/libports/notify-msg-accepted.c b/libports/notify-msg-accepted.c index 0e49715d..769d00f1 100644 --- a/libports/notify-msg-accepted.c +++ b/libports/notify-msg-accepted.c @@ -25,5 +25,5 @@ error_t ports_do_mach_notify_msg_accepted (struct port_info *pi, mach_port_t name) { - return 0; + return EOPNOTSUPP; } -- cgit v1.2.3