diff options
author | Bob Ham <u9rah@dcs.shef.ac.uk> | 2012-06-30 23:20:31 -0300 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2012-06-30 23:20:31 -0300 |
commit | a5f023c7e7e58583dedfd9a172efe9ef02429048 (patch) | |
tree | 318c99e854f850bb92065b24c561e4354fb5b88c /libshouldbeinlibc/idvec.c | |
parent | 77f925eead8969194f2b251f081cf1cbfa4f5d39 (diff) | |
download | hurd-a5f023c7e7e58583dedfd9a172efe9ef02429048.tar.gz hurd-a5f023c7e7e58583dedfd9a172efe9ef02429048.tar.bz2 hurd-a5f023c7e7e58583dedfd9a172efe9ef02429048.zip |
Address gcc warnings
* exec-reauth.c (exec_reauth): Change type of temp var i to
unsigned int to address gcc warning.
* idvec-impgids.c (idvec_merge_implied_gids) Change type of
temp var i to unsigned int to address gcc warning.
* idvec-impgids.c (idvec_merge_implied_gids): Change type of
temp var i to unsigned int to address gcc warning.
* idvec-rep.c (idvec_rep): Change type of temp var i to unsigned
int to address gcc warning.
* idvec-verify (idvec_verify): Change type of temp var i to
unsigned int to address gcc warning.
* idvec.c (idvec_merge_ids, idvec_remove): Change type of temp
var i to unsigned int to address gcc warning.
* portxlate.c (port_name_xlator_create, port_name_xlator_free):
Change type of temp var i to unsigned int to address gcc warning.
* timefmt.c (fmt_seconds): Cast width to int in test to modify
frac_places to address gcc warning.
* (ugids_verify_make_auth): Change type of temp var i to unsigned
int to address gcc warning.
Diffstat (limited to 'libshouldbeinlibc/idvec.c')
-rw-r--r-- | libshouldbeinlibc/idvec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libshouldbeinlibc/idvec.c b/libshouldbeinlibc/idvec.c index 24adeb8f..d18871f9 100644 --- a/libshouldbeinlibc/idvec.c +++ b/libshouldbeinlibc/idvec.c @@ -184,7 +184,7 @@ idvec_merge_ids (struct idvec *idvec, const uid_t *ids, unsigned num) unsigned num_old = idvec->num; while (num-- > 0 && !err) { - int i; + unsigned int i; for (i = 0; i < num_old; i++) if (idvec->ids[i] == *ids) break; @@ -234,7 +234,7 @@ idvec_remove (struct idvec *idvec, unsigned pos, uid_t id) int idvec_subtract (struct idvec *idvec, const struct idvec *sub) { - int i; + unsigned int i; int done = 0; for (i = 0; i < sub->num; i++) done |= idvec_remove (idvec, 0, sub->ids[i]); |