summaryrefslogtreecommitdiff
path: root/proc/notify.c
diff options
context:
space:
mode:
authorThomas Bushnell <thomas@gnu.org>1999-03-12 20:28:52 +0000
committerThomas Bushnell <thomas@gnu.org>1999-03-12 20:28:52 +0000
commit86e760a779b29116426a2d5fd38a955d47cfb046 (patch)
tree1b1206d7824a20af74df3c53a3b1245ce43568b9 /proc/notify.c
parentc41dfc0e9447aa0e7f1e498ef3f8a76f34d905f5 (diff)
1999-03-11 Mark Kettenis <kettenis@gnu.org>
* 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.
Diffstat (limited to 'proc/notify.c')
-rw-r--r--proc/notify.c4
1 files changed, 1 insertions, 3 deletions
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)
{