summaryrefslogtreecommitdiffstats
path: root/newlib/libc/machine/spu/fsetpos.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/machine/spu/fsetpos.c')
-rw-r--r--newlib/libc/machine/spu/fsetpos.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/newlib/libc/machine/spu/fsetpos.c b/newlib/libc/machine/spu/fsetpos.c
index 6bd423675..3bd0dde3d 100644
--- a/newlib/libc/machine/spu/fsetpos.c
+++ b/newlib/libc/machine/spu/fsetpos.c
@@ -49,17 +49,13 @@ _DEFUN (fsetpos, (iop, pos),
FILE * iop _AND
_CONST _fpos_t * pos)
{
- int* ret;
c99_fsetpos_t args;
CHECK_INIT(_REENT);
args.fp = iop->_fp;
args.pos = pos;
- ret = (int*)&args;
- __send_to_ppe(SPE_C99_SIGNALCODE, SPE_C99_FSETPOS, &args);
-
- return *ret;
+ return __send_to_ppe(SPE_C99_SIGNALCODE, SPE_C99_FSETPOS, &args);
}
#endif /* ! _REENT_ONLY */