Skip to content

Commit

Permalink
vm/mach_signal.cpp: didn't need mach_msg_return_t.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrjbq7 committed May 4, 2018
1 parent 2a8e8ba commit 1d8ca2c
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions vm/mach_signal.cpp
Expand Up @@ -165,13 +165,10 @@ static void* mach_exception_thread(void* arg) {
char data[1024];
} reply;

mach_msg_return_t retval;

// Wait for a message on the exception port.
retval =
mach_msg(&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof(msg),
our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
if (retval != MACH_MSG_SUCCESS) {
if (mach_msg(&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof(msg),
our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL) !=
MACH_MSG_SUCCESS) {
abort();
}

Expand Down

0 comments on commit 1d8ca2c

Please sign in to comment.