From 77f925eead8969194f2b251f081cf1cbfa4f5d39 Mon Sep 17 00:00:00 2001 From: Bob Ham Date: Sat, 30 Jun 2012 23:15:03 -0300 Subject: Address gcc warnings * iouser-restrict.c (listmember): Change type of query into uid_t to address gcc warning. (iohelp_restrict_iouser): Change type of temp var i to unsigned int to address gcc warning. --- libiohelp/iouser-restrict.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libiohelp/iouser-restrict.c') diff --git a/libiohelp/iouser-restrict.c b/libiohelp/iouser-restrict.c index 853820ea..184061e1 100644 --- a/libiohelp/iouser-restrict.c +++ b/libiohelp/iouser-restrict.c @@ -19,7 +19,7 @@ /* Tell if the array LIST (of size N) contains a member equal to QUERY. */ static inline int -listmember (const uid_t *list, int query, int n) +listmember (const uid_t *list, uid_t query, int n) { int i; for (i = 0; i < n; i++) @@ -40,7 +40,7 @@ iohelp_restrict_iouser (struct iouser **new_user, else { struct idvec *uvec, *gvec; - int i; + unsigned int i; error_t err; uvec = make_idvec (); -- cgit v1.2.3