From 28e6bc85dea3e07de6cffd043d297b2ecd23697a Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Sat, 21 Jan 2006 00:21:15 +0000 Subject: Convert l*seek too to use __typeof --- libc/sysdeps/linux/common/llseek.c | 2 +- libc/sysdeps/linux/common/lseek.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'libc/sysdeps/linux') diff --git a/libc/sysdeps/linux/common/llseek.c b/libc/sysdeps/linux/common/llseek.c index 4ebef54ca..33cbe46c2 100644 --- a/libc/sysdeps/linux/common/llseek.c +++ b/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) diff --git a/libc/sysdeps/linux/common/lseek.c b/libc/sysdeps/linux/common/lseek.c index 4e6bd9be6..56a73864f 100644 --- a/libc/sysdeps/linux/common/lseek.c +++ b/libc/sysdeps/linux/common/lseek.c @@ -10,7 +10,7 @@ #include "syscalls.h" #include -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 -- cgit v1.2.3