summaryrefslogtreecommitdiffstats
path: root/newlib/libc/machine/spu/fgetpos.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/machine/spu/fgetpos.c')
-rw-r--r--newlib/libc/machine/spu/fgetpos.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/newlib/libc/machine/spu/fgetpos.c b/newlib/libc/machine/spu/fgetpos.c
index 09c435a13..aa7b6f001 100644
--- a/newlib/libc/machine/spu/fgetpos.c
+++ b/newlib/libc/machine/spu/fgetpos.c
@@ -49,18 +49,12 @@ _DEFUN (fgetpos, (fp, pos),
_fpos_t * pos)
{
c99_fgetpos_t arg;
- int* result;
CHECK_INIT(_REENT);
- result = (int*)&arg;
-
arg.fp = fp->_fp;
arg.pos = pos;
- __send_to_ppe(SPE_C99_SIGNALCODE, SPE_C99_FGETPOS, &arg);
-
-
- return *result;
+ return __send_to_ppe(SPE_C99_SIGNALCODE, SPE_C99_FGETPOS, &arg);
}
#endif /* ! _REENT_ONLY */