summaryrefslogtreecommitdiffstats
path: root/newlib/libc/machine/spu/fprintf.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/machine/spu/fprintf.c')
-rw-r--r--newlib/libc/machine/spu/fprintf.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/newlib/libc/machine/spu/fprintf.c b/newlib/libc/machine/spu/fprintf.c
index 0fe3083da..08b4b1cbf 100644
--- a/newlib/libc/machine/spu/fprintf.c
+++ b/newlib/libc/machine/spu/fprintf.c
@@ -59,13 +59,11 @@ typedef struct
int
fprintf(FILE * fp, _CONST char *fmt,...)
{
- int* ret;
+ int ret;
c99_fprintf_t args;
CHECK_INIT(_REENT);
- ret = (int*) &args;
-
args.fp = fp->_fp;
args.fmt = (char*) fmt;
@@ -75,9 +73,9 @@ fprintf(FILE * fp, _CONST char *fmt,...)
va_start (args.ap);
#endif
- __send_to_ppe(SPE_C99_SIGNALCODE, SPE_C99_VFPRINTF, &args);
+ ret =__send_to_ppe(SPE_C99_SIGNALCODE, SPE_C99_VFPRINTF, &args);
va_end (args.ap);
- return *ret;
+ return ret;
}
#endif /* ! _REENT_ONLY */