From 1d8160dd75fc8f58d50fb3a60f18074a8fb96f57 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sat, 21 Sep 2013 12:41:46 +0200 Subject: Fix gcc warning * libtrivfs/io-restrict-auth.c (listmember): Use uid_t type instead of int. (trivfs_S_io_restrict_auth): Make `i` variable an unsigned int, like the `num` field it is compared with --- libtrivfs/io-restrict-auth.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libtrivfs') diff --git a/libtrivfs/io-restrict-auth.c b/libtrivfs/io-restrict-auth.c index 61c07725..db3c99a0 100644 --- a/libtrivfs/io-restrict-auth.c +++ b/libtrivfs/io-restrict-auth.c @@ -24,7 +24,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ /* Tell if the array LIST (of size N) contains a member equal to QUERY. */ static inline int -listmember (int *list, int query, int n) +listmember (const uid_t *list, uid_t query, int n) { int i; for (i = 0; i < n; i++) @@ -42,7 +42,7 @@ trivfs_S_io_restrict_auth (struct trivfs_protid *cred, uid_t *uids, size_t nuids, uid_t *gids, size_t ngids) { - int i; + unsigned int i; error_t err; struct trivfs_protid *newcred; struct idvec *uvec, *gvec; -- cgit v1.2.3