diff options
Diffstat (limited to 'newlib/libc/machine/spu/vsprintf.c')
-rw-r--r-- | newlib/libc/machine/spu/vsprintf.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/newlib/libc/machine/spu/vsprintf.c b/newlib/libc/machine/spu/vsprintf.c index b36a1a01e..f69b9400c 100644 --- a/newlib/libc/machine/spu/vsprintf.c +++ b/newlib/libc/machine/spu/vsprintf.c @@ -31,20 +31,15 @@ _DEFUN (vsprintf, (str, fmt, ap), _CONST char *fmt _AND va_list ap) { - int* ret; c99_vsprintf_t args; CHECK_STR_INIT(_REENT); - ret = (int*) &args; - args.str = str; args.fmt = (char*) fmt; va_copy(args.ap,ap); - __send_to_ppe(SPE_C99_SIGNALCODE, SPE_C99_VSPRINTF, &args); - - return *ret; + return __send_to_ppe(SPE_C99_SIGNALCODE, SPE_C99_VSPRINTF, &args); } #endif /* ! _REENT_ONLY */ |