From 955c2e609c71575ab9e66cd0f451a0f18a1329ee Mon Sep 17 00:00:00 2001 From: Sergey Bugaev Date: Tue, 9 May 2023 00:31:01 +0300 Subject: libtrivfs: Port to x86_64 Message-Id: <20230508213136.608575-7-bugaevc@gmail.com> --- libtrivfs/io-restrict-auth.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'libtrivfs/io-restrict-auth.c') diff --git a/libtrivfs/io-restrict-auth.c b/libtrivfs/io-restrict-auth.c index 38ab06a7..967efeeb 100644 --- a/libtrivfs/io-restrict-auth.c +++ b/libtrivfs/io-restrict-auth.c @@ -25,9 +25,9 @@ /* Tell if the array LIST (of size N) contains a member equal to QUERY. */ static inline int -listmember (const uid_t *list, uid_t query, int n) +listmember (const uid_t *list, uid_t query, mach_msg_type_number_t n) { - int i; + mach_msg_type_number_t i; for (i = 0; i < n; i++) if (list[i] == query) return 1; @@ -40,8 +40,10 @@ trivfs_S_io_restrict_auth (struct trivfs_protid *cred, mach_msg_type_name_t replytype, mach_port_t *newport, mach_msg_type_name_t *newporttype, - const uid_t *uids, size_t nuids, - const uid_t *gids, size_t ngids) + const uid_t *uids, + mach_msg_type_number_t nuids, + const uid_t *gids, + mach_msg_type_number_t ngids) { unsigned int i; error_t err; -- cgit v1.2.3