diff options
author | Sergey Bugaev <bugaevc@gmail.com> | 2023-05-09 00:31:01 +0300 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-05-10 02:10:44 +0200 |
commit | 955c2e609c71575ab9e66cd0f451a0f18a1329ee (patch) | |
tree | d3fdb11344bb5a8c2029604a4264cf3a8ad9bbe8 /libtrivfs/io-restrict-auth.c | |
parent | df76cbe68701366f8db2f2f362a8d757886115d1 (diff) | |
download | hurd-955c2e609c71575ab9e66cd0f451a0f18a1329ee.tar.gz hurd-955c2e609c71575ab9e66cd0f451a0f18a1329ee.tar.bz2 hurd-955c2e609c71575ab9e66cd0f451a0f18a1329ee.zip |
libtrivfs: Port to x86_64
Message-Id: <20230508213136.608575-7-bugaevc@gmail.com>
Diffstat (limited to 'libtrivfs/io-restrict-auth.c')
-rw-r--r-- | libtrivfs/io-restrict-auth.c | 10 |
1 files changed, 6 insertions, 4 deletions
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; |