summaryrefslogtreecommitdiff
path: root/libports/notify-msg-accepted.c
diff options
context:
space:
mode:
authorSergey Bugaev <bugaevc@gmail.com>2021-05-26 18:05:40 +0300
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2022-08-10 22:13:45 +0200
commit9284ddfd23fe4c328e4ff4243780e2e9c691390b (patch)
tree95da56eb35198f02e87a517e75a46a8695ab4ab6 /libports/notify-msg-accepted.c
parent005fe822cbdacc398c7a47540078188a383574db (diff)
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.
Diffstat (limited to 'libports/notify-msg-accepted.c')
-rw-r--r--libports/notify-msg-accepted.c2
1 files changed, 1 insertions, 1 deletions
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;
}