diff options
author | Justus Winter <4winter@informatik.uni-hamburg.de> | 2014-04-05 17:40:24 +0200 |
---|---|---|
committer | Justus Winter <4winter@informatik.uni-hamburg.de> | 2014-04-06 18:09:38 +0200 |
commit | e9687ec4ff525ae4a88314ba4ae97da770bd012f (patch) | |
tree | 9f434a3d390fc926d396c6958594e406090b7e46 /libports/notify-dead-name.c | |
parent | e27425e63392683b85101961489a83e0abef133b (diff) |
libports: fix notify_port_t receiver lookups
* libports/Makefile (MIGSFLAGS): Include mig-mutate.h.
* libports/mig-decls.h: New file.
* libports/mig-mutate.h: Likewise.
* libports/notify-dead-name.c: Fix receiver lookups.
* libports/notify-no-senders.c: Likewise.
* libports/notify-msg-accepted.c: Adjust function declaration.
* libports/notify-port-deleted.c: Likewise.
* libports/notify-port-destroyed.c: Likewise.
* libports/notify-send-once.c: Likewise.
* libports/ports.h: Likewise.
* proc/Makefile (MIGSFLAGS): Include mig-mutate.h, move PROCESS mutators...
* proc/mig-mutate.h: ... into a new file, add NOTIFY mutators.
* proc/notify.c: Fix receiver lookups, adjust function declarations.
* term/devio.c (ports_do_mach_notify_send_once): Adjust accordingly.
Diffstat (limited to 'libports/notify-dead-name.c')
-rw-r--r-- | libports/notify-dead-name.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libports/notify-dead-name.c b/libports/notify-dead-name.c index c67145d1..f974e331 100644 --- a/libports/notify-dead-name.c +++ b/libports/notify-dead-name.c @@ -22,13 +22,12 @@ #include "notify_S.h" error_t -ports_do_mach_notify_dead_name (mach_port_t notify, mach_port_t dead_name) +ports_do_mach_notify_dead_name (struct port_info *pi, + mach_port_t dead_name) { - void *pi = ports_lookup_port (0, notify, 0); if (!pi) return EOPNOTSUPP; ports_dead_name (pi, dead_name); - ports_port_deref (pi); /* Drop gratuitous extra reference that the notification creates. */ mach_port_deallocate (mach_task_self (), dead_name); |