summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2006-01-21 00:21:15 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2006-01-21 00:21:15 +0000
commit28e6bc85dea3e07de6cffd043d297b2ecd23697a (patch)
tree2e98e449f73761057ce56da27b00060a9cde3cde
parent358534f7db075fd8737a9e0a7f2fbe3cb9c59316 (diff)
Convert l*seek too to use __typeof
-rw-r--r--libc/sysdeps/linux/common/llseek.c2
-rw-r--r--libc/sysdeps/linux/common/lseek.c2
2 files changed, 2 insertions, 2 deletions
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 <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