diff options
Diffstat (limited to 'newlib/libc/machine/spu/gets.c')
-rw-r--r-- | newlib/libc/machine/spu/gets.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/newlib/libc/machine/spu/gets.c b/newlib/libc/machine/spu/gets.c index a46ab6a8c..2ac05db3b 100644 --- a/newlib/libc/machine/spu/gets.c +++ b/newlib/libc/machine/spu/gets.c @@ -44,8 +44,6 @@ gets (buf) /* The return value gets written over buf */ - __send_to_ppe(SPE_C99_SIGNALCODE, SPE_C99_GETS, &buf); - - return buf; + return (char*) __send_to_ppe(SPE_C99_SIGNALCODE, SPE_C99_GETS, &buf); } #endif /* ! _REENT_ONLY */ |