diff options
Diffstat (limited to 'newlib/libc/machine/spu/fputc.c')
-rw-r--r-- | newlib/libc/machine/spu/fputc.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/newlib/libc/machine/spu/fputc.c b/newlib/libc/machine/spu/fputc.c index 9d890d055..bf2552631 100644 --- a/newlib/libc/machine/spu/fputc.c +++ b/newlib/libc/machine/spu/fputc.c @@ -50,17 +50,13 @@ fputc (c, fp) int c; register FILE *fp; { - int* ret; c99_fputc_t args; CHECK_INIT(_REENT); args.ch = c; args.fp = fp->_fp; - ret = (int*)&args; - __send_to_ppe(SPE_C99_SIGNALCODE, SPE_C99_FPUTC, &args); - - return *ret; + return __send_to_ppe(SPE_C99_SIGNALCODE, SPE_C99_FPUTC, &args); } #endif /* ! _REENT_ONLY */ |