diff options
Diffstat (limited to 'newlib/libc/machine/spu/vsnprintf.c')
-rw-r--r-- | newlib/libc/machine/spu/vsnprintf.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/newlib/libc/machine/spu/vsnprintf.c b/newlib/libc/machine/spu/vsnprintf.c index 09d4292c0..575cf82d2 100644 --- a/newlib/libc/machine/spu/vsnprintf.c +++ b/newlib/libc/machine/spu/vsnprintf.c @@ -33,21 +33,16 @@ _DEFUN (vsnprintf, (str, size, fmt, ap), _CONST char *fmt _AND va_list ap) { - int* ret; c99_vsnprintf_t args; CHECK_STR_INIT(_REENT); - ret = (int*) &args; - args.str = str; args.size = size; args.fmt = fmt; va_copy(args.ap,ap); - __send_to_ppe(SPE_C99_SIGNALCODE, SPE_C99_VSNPRINTF, &args); - - return *ret; + return __send_to_ppe(SPE_C99_SIGNALCODE, SPE_C99_VSNPRINTF, &args); } #endif /* ! _REENT_ONLY */ |