From 86e760a779b29116426a2d5fd38a955d47cfb046 Mon Sep 17 00:00:00 2001 From: Thomas Bushnell Date: Fri, 12 Mar 1999 20:28:52 +0000 Subject: 1999-03-11 Mark Kettenis * notify.c (do_mach_notify_dead_name): Remove unnecessary braces. * msg.c (S_proc_setmsgport): Remove unused variable FOO. (S_proc_getmsgport): Only check if the message port is still alive if it is not MACH_PORT_NULL. Use mach_port_type instead of mach_port_get_refs to check if the port is dead. * mgt.c (S_proc_reassign): Use mach_port_destroy to release the old task port. --- proc/notify.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'proc/notify.c') diff --git a/proc/notify.c b/proc/notify.c index d0fd2f60..07fc376d 100644 --- a/proc/notify.c +++ b/proc/notify.c @@ -53,9 +53,7 @@ do_mach_notify_dead_name (mach_port_t notify, p = ports_lookup_port (proc_bucket, notify, proc_class); if (!p) - { - return EOPNOTSUPP; - } + return EOPNOTSUPP; if (p->p_task == deadport) { -- cgit v1.2.3