diff options
author | Flavio Cruz <flaviocruz@gmail.com> | 2023-12-14 01:06:37 -0500 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-12-17 23:57:00 +0100 |
commit | 6b494f5e7599ece2ca981472d690db3df3133bde (patch) | |
tree | 82ea19a196c6e4c8c53ddce4d1528e92b9751cb1 /console | |
parent | b1d240be9b36a1db738e1357081987873be94636 (diff) | |
download | hurd-6b494f5e7599ece2ca981472d690db3df3133bde.tar.gz hurd-6b494f5e7599ece2ca981472d690db3df3133bde.tar.bz2 hurd-6b494f5e7599ece2ca981472d690db3df3133bde.zip |
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 'console')
-rw-r--r-- | console/display.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/console/display.c b/console/display.c index 071cd993..e4e3fcae 100644 --- a/console/display.c +++ b/console/display.c @@ -313,7 +313,7 @@ free_modreqs (struct modreq *mr) /* A port deleted notification is generated when we deallocate the user's notify port before it is dead. */ -error_t +kern_return_t do_mach_notify_port_deleted (struct port_info *pi, mach_port_t name) { /* As we cancel the dead-name notification before deallocating the @@ -322,7 +322,7 @@ do_mach_notify_port_deleted (struct port_info *pi, mach_port_t name) } /* We request dead name notifications for the user ports. */ -error_t +kern_return_t do_mach_notify_dead_name (struct port_info *pi, mach_port_t dead_name) { struct notify *notify_port = (struct notify *) pi; @@ -370,13 +370,13 @@ do_mach_notify_dead_name (struct port_info *pi, mach_port_t dead_name) return 0; } -error_t +kern_return_t do_mach_notify_port_destroyed (struct port_info *pi, mach_port_t rights) { return EOPNOTSUPP; } -error_t +kern_return_t do_mach_notify_no_senders (struct port_info *pi, mach_port_mscount_t count) { return ports_do_mach_notify_no_senders (pi, count); |