summaryrefslogtreecommitdiffstats
path: root/newlib/libc/machine/spu/putc.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/machine/spu/putc.c')
-rw-r--r--newlib/libc/machine/spu/putc.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/newlib/libc/machine/spu/putc.c b/newlib/libc/machine/spu/putc.c
index 239bf2fac..dc478d350 100644
--- a/newlib/libc/machine/spu/putc.c
+++ b/newlib/libc/machine/spu/putc.c
@@ -50,18 +50,14 @@ putc (c, fp)
int c;
register FILE *fp;
{
- int* ret;
c99_putc_t args;
CHECK_INIT(_REENT);
args.ch = c;
args.fp = fp->_fp;
- ret = (int*)&args;
- __send_to_ppe(SPE_C99_SIGNALCODE, SPE_C99_PUTC, &args);
-
- return *ret;
+ return __send_to_ppe(SPE_C99_SIGNALCODE, SPE_C99_PUTC, &args);
}
#endif /* ! _REENT_ONLY */