summaryrefslogtreecommitdiffstats
path: root/newlib/libc/machine/spu/vscanf.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/machine/spu/vscanf.c')
-rw-r--r--newlib/libc/machine/spu/vscanf.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/newlib/libc/machine/spu/vscanf.c b/newlib/libc/machine/spu/vscanf.c
index 8571e5c2d..4f68bfefd 100644
--- a/newlib/libc/machine/spu/vscanf.c
+++ b/newlib/libc/machine/spu/vscanf.c
@@ -59,19 +59,14 @@ _DEFUN (vscanf, (fmt, ap),
_CONST char *fmt _AND
va_list ap)
{
- int* ret;
c99_vscanf_t args;
CHECK_STD_INIT(_REENT);
- ret = (int*) &args;
-
args.fmt = (char*) fmt;
va_copy(args.ap,ap);
- __send_to_ppe(SPE_C99_SIGNALCODE, SPE_C99_VSCANF, &args);
-
- return *ret;
+ return __send_to_ppe(SPE_C99_SIGNALCODE, SPE_C99_VSCANF, &args);
}
#endif /* ! _REENT_ONLY */