summaryrefslogtreecommitdiffstats
path: root/newlib/libc/machine/spu/vfscanf.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/machine/spu/vfscanf.c')
-rw-r--r--newlib/libc/machine/spu/vfscanf.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/newlib/libc/machine/spu/vfscanf.c b/newlib/libc/machine/spu/vfscanf.c
index 6849cf59a..4de496b11 100644
--- a/newlib/libc/machine/spu/vfscanf.c
+++ b/newlib/libc/machine/spu/vfscanf.c
@@ -62,20 +62,15 @@ _DEFUN (vfscanf, (fp, fmt, ap),
_CONST char *fmt _AND
va_list ap)
{
- int* ret;
c99_vfscanf_t args;
CHECK_INIT(_REENT);
- ret = (int*) &args;
-
args.fp = fp->_fp;
args.fmt = (char*) fmt;
va_copy(args.ap,ap);
- __send_to_ppe(SPE_C99_SIGNALCODE, SPE_C99_VFSCANF, &args);
-
- return *ret;
+ return __send_to_ppe(SPE_C99_SIGNALCODE, SPE_C99_VFSCANF, &args);
}
#endif /* ! _REENT_ONLY */