summaryrefslogtreecommitdiffstats
path: root/newlib/libc/stdio/iprintf.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/stdio/iprintf.c')
-rw-r--r--newlib/libc/stdio/iprintf.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/newlib/libc/stdio/iprintf.c b/newlib/libc/stdio/iprintf.c
index 9bbe733ea..4b698ad7f 100644
--- a/newlib/libc/stdio/iprintf.c
+++ b/newlib/libc/stdio/iprintf.c
@@ -96,8 +96,8 @@ int
_iprintf_r(struct _reent *ptr, _CONST char *fmt, ...)
#else
int
-_iprintf_r(data, fmt, va_alist)
- char *data;
+_iprintf_r(ptr, fmt, va_alist)
+ struct _reent *ptr;
char *fmt;
va_dcl
#endif
@@ -111,7 +111,8 @@ _iprintf_r(data, fmt, va_alist)
#else
va_start (ap);
#endif
- ret = vfiprintf (_stdout_r (ptr), fmt, ap);
+ ret = _vfiprintf_r (ptr, _stdout_r (ptr), fmt, ap);
va_end (ap);
return ret;
}
+