diff options
Diffstat (limited to 'hurd/port-cleanup.c')
-rw-r--r-- | hurd/port-cleanup.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hurd/port-cleanup.c b/hurd/port-cleanup.c index 08ab3d4..ad43b83 100644 --- a/hurd/port-cleanup.c +++ b/hurd/port-cleanup.c @@ -26,7 +26,8 @@ void _hurd_port_cleanup (void *cleanup_data, jmp_buf env, int val) { - __mach_port_deallocate (__mach_task_self (), (mach_port_t) cleanup_data); + mach_port_t port = (mach_port_t) (uintptr_t) cleanup_data; + __mach_port_deallocate (__mach_task_self (), port); } /* We were cancelled while using a port, and called from the cleanup unwinding. |