summaryrefslogtreecommitdiffstats
path: root/newlib/libc/machine/spu/printf.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/machine/spu/printf.c')
-rw-r--r--newlib/libc/machine/spu/printf.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/newlib/libc/machine/spu/printf.c b/newlib/libc/machine/spu/printf.c
index c5a2924d2..bf3658ba6 100644
--- a/newlib/libc/machine/spu/printf.c
+++ b/newlib/libc/machine/spu/printf.c
@@ -35,13 +35,11 @@ printf (fmt, va_alist)
va_dcl
#endif
{
- int* ret;
+ int ret;
c99_printf_t args;
CHECK_STD_INIT(_REENT);
- ret = (int*) &args;
-
args.fmt = fmt;
#ifdef _HAVE_STDC
va_start (args.ap, fmt);
@@ -49,10 +47,10 @@ printf (fmt, va_alist)
va_start (args.ap);
#endif
- __send_to_ppe(SPE_C99_SIGNALCODE, SPE_C99_VPRINTF, &args);
+ ret = __send_to_ppe(SPE_C99_SIGNALCODE, SPE_C99_VPRINTF, &args);
va_end (args.ap);
- return *ret;
+ return ret;
}
#endif /* ! _REENT_ONLY */