diff options
Diffstat (limited to 'stdio-common')
-rw-r--r-- | stdio-common/test-vfprintf.c | 4 | ||||
-rw-r--r-- | stdio-common/tst-rndseek.c | 2 | ||||
-rw-r--r-- | stdio-common/vfprintf.c | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/stdio-common/test-vfprintf.c b/stdio-common/test-vfprintf.c index 1b9d0c0f9b..50e8b5038a 100644 --- a/stdio-common/test-vfprintf.c +++ b/stdio-common/test-vfprintf.c @@ -1,5 +1,5 @@ /* Tests of *printf for very large strings. - Copyright (C) 2000 Free Software Foundation, Inc. + Copyright (C) 2000, 2002 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper <drepper@redhat.com>, 2000. @@ -41,7 +41,7 @@ int main (void) { char buf[20]; - int i; + size_t i; int res = 0; int fd; diff --git a/stdio-common/tst-rndseek.c b/stdio-common/tst-rndseek.c index 60fd5094d8..61b919c002 100644 --- a/stdio-common/tst-rndseek.c +++ b/stdio-common/tst-rndseek.c @@ -67,7 +67,7 @@ do_test (void) { int fd; FILE *fp; - int i; + size_t i; int result; fd = mkstemp (fname); diff --git a/stdio-common/vfprintf.c b/stdio-common/vfprintf.c index ab7998c248..788290b803 100644 --- a/stdio-common/vfprintf.c +++ b/stdio-common/vfprintf.c @@ -1035,7 +1035,7 @@ vfprintf (FILE *s, const CHAR_T *format, va_list ap) const char *mbs = (const char *) string; \ mbstate_t mbstate; \ \ - len = prec != -1 ? prec : strlen (mbs); \ + len = prec != -1 ? (size_t) prec : strlen (mbs); \ \ /* Allocate dynamically an array which definitely is long \ enough for the wide character version. */ \ |