From ce0ae22d02f286c5a0ef61b5dd8e6ee9b56620d7 Mon Sep 17 00:00:00 2001 From: Sergey Bugaev Date: Tue, 9 May 2023 00:31:23 +0300 Subject: eth-multiplexer: Port to x86_64 Message-Id: <20230508213136.608575-29-bugaevc@gmail.com> --- eth-multiplexer/ethernet.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'eth-multiplexer/ethernet.c') diff --git a/eth-multiplexer/ethernet.c b/eth-multiplexer/ethernet.c index e45a4b94..13f0036e 100644 --- a/eth-multiplexer/ethernet.c +++ b/eth-multiplexer/ethernet.c @@ -80,7 +80,7 @@ eth_set_clear_flags (int set_flags, int clear_flags) { error_t err; int flags; - size_t count; + mach_msg_type_number_t count; count = 1; err = device_get_status (ether_port, NET_FLAGS, (dev_status_t) &flags, @@ -109,7 +109,7 @@ get_ethernet_address (mach_port_t port, char *address) { error_t err; int net_address[2]; - size_t count = 2; + mach_msg_type_number_t count = 2; assert_backtrace (count * sizeof (int) >= ETH_ALEN); err = device_get_status (port, NET_ADDRESS, net_address, &count); -- cgit v1.2.3