about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/i386/fxstat.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/unix/sysv/linux/i386/fxstat.c')
-rw-r--r--sysdeps/unix/sysv/linux/i386/fxstat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/unix/sysv/linux/i386/fxstat.c b/sysdeps/unix/sysv/linux/i386/fxstat.c
index 192325e6b0..532341d284 100644
--- a/sysdeps/unix/sysv/linux/i386/fxstat.c
+++ b/sysdeps/unix/sysv/linux/i386/fxstat.c
@@ -53,7 +53,7 @@ __fxstat (int vers, int fd, struct stat *buf)
       return INLINE_SYSCALL (fstat, 2, fd, (struct kernel_stat *) buf);
     }
 #if __ASSUME_STAT64_SYSCALL > 0
-  result = INLINE_SYSCALL (fstat64, 2, name, &buf64);
+  result = INLINE_SYSCALL (fstat64, 2, fd, &buf64);
   if (result == 0)
     result = xstat32_conv (vers, &buf64, buf);
   return result;
@@ -66,7 +66,7 @@ __fxstat (int vers, int fd, struct stat *buf)
     {
       struct stat64 buf64;
 
-      result = INLINE_SYSCALL (fstat64, 2, name, &buf64);
+      result = INLINE_SYSCALL (fstat64, 2, fd, &buf64);
 
       if (result == 0)
 	result = xstat32_conv (vers, &buf64, buf);