aboutsummaryrefslogtreecommitdiff
path: root/libshouldbeinlibc/timefmt.c
diff options
context:
space:
mode:
authorBob Ham <u9rah@dcs.shef.ac.uk>2012-06-30 23:20:31 -0300
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2012-06-30 23:20:31 -0300
commita5f023c7e7e58583dedfd9a172efe9ef02429048 (patch)
tree318c99e854f850bb92065b24c561e4354fb5b88c /libshouldbeinlibc/timefmt.c
parent77f925eead8969194f2b251f081cf1cbfa4f5d39 (diff)
downloadhurd-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/timefmt.c')
-rw-r--r--libshouldbeinlibc/timefmt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libshouldbeinlibc/timefmt.c b/libshouldbeinlibc/timefmt.c
index aa8965b7..7ce973bc 100644
--- a/libshouldbeinlibc/timefmt.c
+++ b/libshouldbeinlibc/timefmt.c
@@ -226,7 +226,7 @@ fmt_seconds (struct timeval *tv, int leading_zeros, int frac_places,
p += add_field (&secs, MINUTE, &leading_zeros, 4, ":", width, p);
p += add_field (&secs, SECOND, &leading_zeros, 1, "", width, p);
- if (frac_places < 0 && (p - buf) < width - 2)
+ if (frac_places < 0 && (p - buf) < (int) width - 2)
/* If FRAC_PLACES is < 0, then use any space remaining before WIDTH. */
frac_places = width - (p - buf) - 1;