diff options
Diffstat (limited to 'newlib/libc/machine/spu/tmpnam.c')
-rw-r--r-- | newlib/libc/machine/spu/tmpnam.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/newlib/libc/machine/spu/tmpnam.c b/newlib/libc/machine/spu/tmpnam.c index d0fe39b3a..5cbf2793b 100644 --- a/newlib/libc/machine/spu/tmpnam.c +++ b/newlib/libc/machine/spu/tmpnam.c @@ -38,10 +38,7 @@ char * _DEFUN (tmpnam, (s), char *s) { - char **ret = &s; /* The return value gets written over buf */ - __send_to_ppe(SPE_C99_SIGNALCODE, SPE_C99_TMPNAM, &s); - - return *ret; + return (char*) __send_to_ppe(SPE_C99_SIGNALCODE, SPE_C99_TMPNAM, &s); } |