OSDN Git Service

lseek: Correct order of offset arguments
[uclinux-h8/uClibc.git] / libc / sysdeps / linux / common / lseek.c
index 500c6bf..11a1fbb 100644 (file)
@@ -24,9 +24,7 @@ off_t __NC(lseek)(int fd, off_t offset, int whence)
 #elif __WORDSIZE == 32
        __off64_t result;
        __off_t high = 0;
-       return INLINE_SYSCALL(llseek, 5, fd,
-                               __LONG_LONG_PAIR(high, offset),
-                               &result, whence) ?: result;
+       return INLINE_SYSCALL(llseek, 5, fd, high, offset, &result, whence) ?: result;
 #endif
 /* No need to handle __WORDSIZE == 64 as such a kernel won't define __NR_llseek */
 }