From e9ac14979a70d0b36684fb4bac031daa7dcb9a6a Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Tue, 8 Aug 2023 01:44:19 +0200 Subject: Get rid of u_int in RPCs To get mach_msg_type_number_t everywhere --- trans/firmlink.c | 2 +- trans/magic.c | 2 +- trans/streamio.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'trans') diff --git a/trans/firmlink.c b/trans/firmlink.c index 5101b1bb..6e2798e6 100644 --- a/trans/firmlink.c +++ b/trans/firmlink.c @@ -140,7 +140,7 @@ static error_t getroot (struct trivfs_control *cntl, mach_port_t reply_port, mach_msg_type_name_t reply_port_type, mach_port_t dotdot, - const uid_t *uids, u_int nuids, const uid_t *gids, u_int ngids, + const uid_t *uids, mach_msg_type_number_t nuids, const uid_t *gids, mach_msg_type_number_t ngids, int flags, retry_type *do_retry, char *retry_name, mach_port_t *node, mach_msg_type_name_t *node_type) diff --git a/trans/magic.c b/trans/magic.c index 5c477df1..7c809fbc 100644 --- a/trans/magic.c +++ b/trans/magic.c @@ -150,7 +150,7 @@ magic_getroot (struct trivfs_control *cntl, mach_port_t reply_port, mach_msg_type_name_t reply_port_type, mach_port_t dotdot, - const uid_t *uids, u_int nuids, const uid_t *gids, u_int ngids, + const uid_t *uids, mach_msg_type_number_t nuids, const uid_t *gids, mach_msg_type_number_t ngids, int flags, retry_type *do_retry, char *retry_name, mach_port_t *node, mach_msg_type_name_t *node_type) diff --git a/trans/streamio.c b/trans/streamio.c index 272a002c..991f9ad5 100644 --- a/trans/streamio.c +++ b/trans/streamio.c @@ -1040,7 +1040,7 @@ dev_read (size_t amount, void **buf, size_t *len, int nowait) error_t device_read_reply_inband (mach_port_t reply, error_t errorcode, - const io_buf_ptr_inband_t data, u_int datalen) + const io_buf_ptr_inband_t data, mach_msg_type_number_t datalen) { if (reply != phys_reply) return EOPNOTSUPP; -- cgit v1.2.3