Browse Source

Convert l*seek too to use __typeof

Peter S. Mazinger 18 năm trước cách đây
mục cha
commit
28e6bc85de
2 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 1 1
      libc/sysdeps/linux/common/llseek.c
  2. 1 1
      libc/sysdeps/linux/common/lseek.c

+ 1 - 1
libc/sysdeps/linux/common/llseek.c

@@ -37,7 +37,7 @@ loff_t __libc_lseek64(int fd, loff_t offset, int whence)
 				(off_t) (offset & 0xffffffff), &result, whence) ?: result);
 }
 #else
-extern __off_t __libc_lseek(int fildes, off_t offset, int whence);
+extern __typeof(lseek) __libc_lseek;
 libc_hidden_proto(__libc_lseek)
 
 loff_t __libc_lseek64(int fd, loff_t offset, int whence)

+ 1 - 1
libc/sysdeps/linux/common/lseek.c

@@ -10,7 +10,7 @@
 #include "syscalls.h"
 #include <unistd.h>
 
-extern __off_t __libc_lseek (int __fd, __off_t __offset, int __whence) __THROW;
+extern __typeof(lseek) __libc_lseek;
 libc_hidden_proto(__libc_lseek)
 
 #define __NR___libc_lseek __NR_lseek