summaryrefslogtreecommitdiffstats
path: root/newlib/libc/machine/spu/vsscanf.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/machine/spu/vsscanf.c')
-rw-r--r--newlib/libc/machine/spu/vsscanf.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/newlib/libc/machine/spu/vsscanf.c b/newlib/libc/machine/spu/vsscanf.c
index cd8e1eba5..bd76cfc9e 100644
--- a/newlib/libc/machine/spu/vsscanf.c
+++ b/newlib/libc/machine/spu/vsscanf.c
@@ -62,20 +62,15 @@ _DEFUN (vsscanf, (str, fmt, ap),
_CONST char *fmt _AND
va_list ap)
{
- int* ret;
c99_vsscanf_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_VSSCANF, &args);
-
- return *ret;
+ return __send_to_ppe(SPE_C99_SIGNALCODE, SPE_C99_VSSCANF, &args);
}
#endif /* ! _REENT_ONLY */