summaryrefslogtreecommitdiffstats
path: root/libgloss/spu/fstat.c
diff options
context:
space:
mode:
Diffstat (limited to 'libgloss/spu/fstat.c')
-rw-r--r--libgloss/spu/fstat.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/libgloss/spu/fstat.c b/libgloss/spu/fstat.c
index cef243161..69316d481 100644
--- a/libgloss/spu/fstat.c
+++ b/libgloss/spu/fstat.c
@@ -37,13 +37,12 @@ int
fstat (int file, struct stat *pstat)
{
syscall_fstat_t sys;
- syscall_out_t *psys_out = ( syscall_out_t* )&sys;
jsre_stat_t pjstat;
+ int ret;
sys.file = file;
sys.ptr = ( unsigned int )&pjstat;
-
- __send_to_ppe (JSRE_POSIX1_SIGNALCODE, JSRE_FSTAT, &sys);
+ ret = __send_to_ppe (JSRE_POSIX1_SIGNALCODE, JSRE_FSTAT, &sys);
pstat->st_dev = pjstat.dev;
pstat->st_ino = pjstat.ino;
@@ -59,7 +58,5 @@ fstat (int file, struct stat *pstat)
pstat->st_mtime = pjstat.mtime;
pstat->st_ctime = pjstat.ctime;
-
- return( psys_out->rc );
+ return ret;
}
-