summary refs log tree commit diff
path: root/stdio-common
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2005-07-22 15:12:23 +0000
committerUlrich Drepper <drepper@redhat.com>2005-07-22 15:12:23 +0000
commit84d2b24050f6e6783a5db95ab505a6b54b9a3ff2 (patch)
treec8c1b59bab9dd2556d918f0bf3c9e2f4ceb5b4eb /stdio-common
parent24452349b126c848e837468bdb9820d44228d609 (diff)
downloadglibc-84d2b24050f6e6783a5db95ab505a6b54b9a3ff2.tar.gz
glibc-84d2b24050f6e6783a5db95ab505a6b54b9a3ff2.tar.xz
glibc-84d2b24050f6e6783a5db95ab505a6b54b9a3ff2.zip
* stdio-common/fxprintf.c (__fxprintf): Declare functions more local.
2005-07-22  Jakub Jelinek  <jakub@redhat.com>

	* wcsmbs/bits/wchar2.h (__vfwprintf_chk, __vwprintf_chk): Use
	__gnuc_va_list rather than _G_va_list.
Diffstat (limited to 'stdio-common')
-rw-r--r--stdio-common/fxprintf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/stdio-common/fxprintf.c b/stdio-common/fxprintf.c
index 3b3cc5cdda..6fecb31fb7 100644
--- a/stdio-common/fxprintf.c
+++ b/stdio-common/fxprintf.c
@@ -37,9 +37,9 @@ __fxprintf (FILE *fp, const char *fmt, ...)
   int res;
   if (_IO_fwide (fp, 0) > 0)
     {
-      size_t len = strlen (fmt) + 1, i;
+      size_t len = strlen (fmt) + 1;
       wchar_t wfmt[len];
-      for (i = 0; i < len; ++i)
+      for (size_t i = 0; i < len; ++i)
 	{
 	  assert (isascii (fmt[i]));
 	  wfmt[i] = fmt[i];