summaryrefslogtreecommitdiff
path: root/libiohelp
diff options
context:
space:
mode:
authorBob Ham <u9rah@dcs.shef.ac.uk>2012-06-30 23:15:03 -0300
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2012-06-30 23:15:03 -0300
commit77f925eead8969194f2b251f081cf1cbfa4f5d39 (patch)
treed1ece4380c2abc57dad09ac3b7c3094e348c640a /libiohelp
parent258db5e309ca6da3aa8c25aca0473eba8f5e63af (diff)
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.
Diffstat (limited to 'libiohelp')
-rw-r--r--libiohelp/iouser-restrict.c4
1 files changed, 2 insertions, 2 deletions
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 ();