diff options
Diffstat (limited to 'newlib/libc/machine/spu/sscanf.c')
-rw-r--r-- | newlib/libc/machine/spu/sscanf.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/newlib/libc/machine/spu/sscanf.c b/newlib/libc/machine/spu/sscanf.c index 3697c1724..669c6e51e 100644 --- a/newlib/libc/machine/spu/sscanf.c +++ b/newlib/libc/machine/spu/sscanf.c @@ -61,13 +61,11 @@ _DEFUN(sscanf, (str, fmt), _CONST char *str _AND _CONST char *fmt _DOTS) { - int* ret; + int ret; c99_sscanf_t args; CHECK_STR_INIT(_REENT); - ret = (int*) &args; - args.str = str; args.fmt = fmt; #ifdef _HAVE_STDC @@ -76,10 +74,10 @@ _DEFUN(sscanf, (str, fmt), va_start (args.ap); #endif - __send_to_ppe(SPE_C99_SIGNALCODE, SPE_C99_VSSCANF, &args); + ret = __send_to_ppe(SPE_C99_SIGNALCODE, SPE_C99_VSSCANF, &args); va_end (args.ap); - return *ret; + return ret; } #endif /* ! _REENT_ONLY */ |