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-send-once.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libports/notify-send-once.c') diff --git a/libports/notify-send-once.c b/libports/notify-send-once.c index ad0ba334..a680802a 100644 --- a/libports/notify-send-once.c +++ b/libports/notify-send-once.c @@ -24,5 +24,5 @@ error_t ports_do_mach_notify_send_once (struct port_info *pi) { - return 0; + return EOPNOTSUPP; } -- cgit v1.2.3