summaryrefslogtreecommitdiff
path: root/libtrivfs
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2013-09-21 12:41:46 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2013-09-21 12:41:46 +0200
commit1d8160dd75fc8f58d50fb3a60f18074a8fb96f57 (patch)
tree8542fd307d41ff82e8613ab8d610208e4d7652a7 /libtrivfs
parentb0475fd6207dbd5ce66ae5e7e610942074ccb70c (diff)
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
Diffstat (limited to 'libtrivfs')
-rw-r--r--libtrivfs/io-restrict-auth.c4
1 files changed, 2 insertions, 2 deletions
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;