diff options
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); |