diff options
Diffstat (limited to 'newlib/libc/machine/spu/setvbuf.c')
-rw-r--r-- | newlib/libc/machine/spu/setvbuf.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/newlib/libc/machine/spu/setvbuf.c b/newlib/libc/machine/spu/setvbuf.c index b41b4b795..32da292f9 100644 --- a/newlib/libc/machine/spu/setvbuf.c +++ b/newlib/libc/machine/spu/setvbuf.c @@ -56,7 +56,6 @@ _DEFUN (setvbuf, (fp, buf, mode, size), int mode _AND size_t size) { - int* ret; c99_setvbuf_t args; CHECK_INIT(_REENT); @@ -65,11 +64,8 @@ _DEFUN (setvbuf, (fp, buf, mode, size), args.buf = buf; args.mode = mode; args.size = size; - ret = (int*)&args; - __send_to_ppe(SPE_C99_SIGNALCODE, SPE_C99_SETVBUF, &args); - - return *ret; + return __send_to_ppe(SPE_C99_SIGNALCODE, SPE_C99_SETVBUF, &args); } #endif /* ! _REENT_ONLY */ |