diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2014-09-04 08:27:03 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2014-09-04 08:27:03 +0000 |
commit | f9bafa4640b2e24394541c7f26fad61ed908fbe3 (patch) | |
tree | ce6be1413c7c083a30f39ae3a806867b47c62d15 /newlib/libc/time/strftime.c | |
parent | 4a9103c4100893d3e9e55f96b31434d17f06666d (diff) | |
download | cygnal-f9bafa4640b2e24394541c7f26fad61ed908fbe3.tar.gz cygnal-f9bafa4640b2e24394541c7f26fad61ed908fbe3.tar.bz2 cygnal-f9bafa4640b2e24394541c7f26fad61ed908fbe3.zip |
* libc/time/clock.c (clock): Fix warnings about signed-unsigned
comparisons.
* libc/time/strftime.c (strftime): Likewise.
* libc/time/strptime.c (match_string): Fix warning about discarding
'restrict' qualifier from pointer target type.
Diffstat (limited to 'newlib/libc/time/strftime.c')
-rw-r--r-- | newlib/libc/time/strftime.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/newlib/libc/time/strftime.c b/newlib/libc/time/strftime.c index f95a85dce..9bdde829a 100644 --- a/newlib/libc/time/strftime.c +++ b/newlib/libc/time/strftime.c @@ -694,12 +694,12 @@ _DEFUN (strftime, (s, maxsize, format, tim_p), #endif /* !_WANT_C99_TIME_FORMATS */ { size_t count = 0; - int i, len = 0; + int len = 0; const CHAR *ctloc; #if defined (MAKE_WCSFTIME) && !defined (__HAVE_LOCALE_INFO_EXTENDED__) CHAR ctlocbuf[CTLOCBUFLEN]; #endif - size_t ctloclen; + size_t i, ctloclen; CHAR alt; CHAR pad; unsigned long width; @@ -1299,7 +1299,7 @@ recurse: case CQ('Z'): if (tim_p->tm_isdst >= 0) { - int size; + size_t size; TZ_LOCK; size = strlen(_tzname[tim_p->tm_isdst > 0]); for (i = 0; i < size; i++) |