summaryrefslogtreecommitdiffstats
path: root/newlib/libc/machine/spu/rename.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/machine/spu/rename.c')
-rw-r--r--newlib/libc/machine/spu/rename.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/newlib/libc/machine/spu/rename.c b/newlib/libc/machine/spu/rename.c
index 0117c5631..bf58fbdc4 100644
--- a/newlib/libc/machine/spu/rename.c
+++ b/newlib/libc/machine/spu/rename.c
@@ -48,13 +48,9 @@ rename (old, new)
_CONST char *old;
_CONST char *new;
{
- int *ret;
c99_rename_t args;
args.old = old;
args.new = new;
- ret = (int*) &args;
- __send_to_ppe(SPE_C99_SIGNALCODE, SPE_C99_RENAME, &args);
-
- return *ret;
+ return __send_to_ppe(SPE_C99_SIGNALCODE, SPE_C99_RENAME, &args);
}