summaryrefslogtreecommitdiff
path: root/device/net_io.c
diff options
context:
space:
mode:
Diffstat (limited to 'device/net_io.c')
-rw-r--r--device/net_io.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/device/net_io.c b/device/net_io.c
index 5f287cb..dca99d7 100644
--- a/device/net_io.c
+++ b/device/net_io.c
@@ -508,8 +508,8 @@ boolean_t net_deliver(nonblocking)
MACH_MSGH_BITS(MACH_MSG_TYPE_PORT_SEND, 0);
/* remember message sizes must be rounded up */
kmsg->ikm_header.msgh_size =
- ((mach_msg_size_t) (sizeof(struct net_rcv_msg)
- - NET_RCV_MAX + count))+3 &~ 3;
+ (((mach_msg_size_t) (sizeof(struct net_rcv_msg)
+ - NET_RCV_MAX + count)) + 3) &~ 3;
kmsg->ikm_header.msgh_local_port = MACH_PORT_NULL;
kmsg->ikm_header.msgh_kind = MACH_MSGH_KIND_NORMAL;
kmsg->ikm_header.msgh_id = NET_RCV_MSG_ID;