diff options
Diffstat (limited to 'newlib/libc/machine/spu/ungetc.c')
-rw-r--r-- | newlib/libc/machine/spu/ungetc.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/newlib/libc/machine/spu/ungetc.c b/newlib/libc/machine/spu/ungetc.c index 29736b398..631e71da5 100644 --- a/newlib/libc/machine/spu/ungetc.c +++ b/newlib/libc/machine/spu/ungetc.c @@ -50,18 +50,14 @@ ungetc (c, fp) int c; register FILE *fp; { - int* ret; c99_ungetc_t args; CHECK_INIT(_REENT); args.c = c; args.fp = fp->_fp; - ret = (int*)&args; - __send_to_ppe(SPE_C99_SIGNALCODE, SPE_C99_UNGETC, &args); - - return *ret; + return __send_to_ppe(SPE_C99_SIGNALCODE, SPE_C99_UNGETC, &args); } #endif /* ! _REENT_ONLY */ |