This is the mail archive of the
newlib@sources.redhat.com
mailing list for the newlib project.
iprintf reentrant fix
- From: "Artem B. Bityuckiy" <abityuckiy at yandex dot ru>
- To: newlib at sources dot redhat dot com, "Artem B. Bityuckiy" <abitytsky at softminecorp dot com>
- Date: Tue, 04 May 2004 16:55:22 +0400
- Subject: iprintf reentrant fix
Hello. Here is a small fix for iprintf.
--
Best Regards,
Artem B. Bityuckiy,
St.-Petersburg, Russia.
Index: iprintf.c
===================================================================
RCS file: /cvs/src/src/newlib/libc/stdio/iprintf.c,v
retrieving revision 1.4
diff -c -r1.4 iprintf.c
*** iprintf.c 23 Apr 2004 20:01:55 -0000 1.4
--- iprintf.c 4 May 2004 12:53:20 -0000
***************
*** 96,103 ****
_iprintf_r(struct _reent *ptr, _CONST char *fmt, ...)
#else
int
! _iprintf_r(data, fmt, va_alist)
! char *data;
char *fmt;
va_dcl
#endif
--- 96,103 ----
_iprintf_r(struct _reent *ptr, _CONST char *fmt, ...)
#else
int
! _iprintf_r(ptr, fmt, va_alist)
! struct _reent *ptr;
char *fmt;
va_dcl
#endif
***************
*** 111,117 ****
#else
va_start (ap);
#endif
! ret = vfiprintf (_stdout_r (ptr), fmt, ap);
va_end (ap);
return ret;
}
--- 111,118 ----
#else
va_start (ap);
#endif
! ret = _vfiprintf_r (ptr, _stdout_r (ptr), fmt, ap);
va_end (ap);
return ret;
}
+