diff options
Diffstat (limited to 'newlib/libc/machine/spu/sprintf.c')
-rw-r--r-- | newlib/libc/machine/spu/sprintf.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/newlib/libc/machine/spu/sprintf.c b/newlib/libc/machine/spu/sprintf.c index 37a319e11..b4f7dadd0 100644 --- a/newlib/libc/machine/spu/sprintf.c +++ b/newlib/libc/machine/spu/sprintf.c @@ -60,13 +60,11 @@ _DEFUN(sprintf, (str, fmt), char *str _AND _CONST char *fmt _DOTS) { - int* ret; + int ret; c99_sprintf_t args; CHECK_STR_INIT(_REENT); - ret = (int*) &args; - args.str = str; args.fmt = fmt; #ifdef _HAVE_STDC @@ -75,10 +73,10 @@ _DEFUN(sprintf, (str, fmt), va_start (args.ap); #endif - __send_to_ppe(SPE_C99_SIGNALCODE, SPE_C99_VSPRINTF, &args); + ret = __send_to_ppe(SPE_C99_SIGNALCODE, SPE_C99_VSPRINTF, &args); va_end (args.ap); - return *ret; + return ret; } #endif /* ! _REENT_ONLY */ |