summaryrefslogtreecommitdiffstats
path: root/newlib/libc/machine/spu/fputs.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/machine/spu/fputs.c')
-rw-r--r--newlib/libc/machine/spu/fputs.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/newlib/libc/machine/spu/fputs.c b/newlib/libc/machine/spu/fputs.c
index d85e82845..2b5d17587 100644
--- a/newlib/libc/machine/spu/fputs.c
+++ b/newlib/libc/machine/spu/fputs.c
@@ -50,17 +50,13 @@ _DEFUN (fputs, (s, fp),
char _CONST * s _AND
FILE * fp)
{
- int* ret;
c99_fputs_t args;
CHECK_INIT(_REENT);
args.s = s;
args.fp = fp->_fp;
- ret = (int*)&args;
- __send_to_ppe(SPE_C99_SIGNALCODE, SPE_C99_FPUTS, &args);
-
- return *ret;
+ return __send_to_ppe(SPE_C99_SIGNALCODE, SPE_C99_FPUTS, &args);
}
#endif /* ! _REENT_ONLY */