From: deraadt Date: Wed, 1 May 1996 11:09:23 +0000 (+0000) Subject: do not proto __syscall or you will experience excruciating pain X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=6b0d02319cc8e8e611990135f76dd9daace5821b;p=openbsd do not proto __syscall or you will experience excruciating pain --- diff --git a/lib/libc/sys/ftruncate.c b/lib/libc/sys/ftruncate.c index b1054bc19f6..211824ef4c9 100644 --- a/lib/libc/sys/ftruncate.c +++ b/lib/libc/sys/ftruncate.c @@ -53,7 +53,6 @@ ftruncate(fd, length) int fd; off_t length; { - quad_t __syscall __P((quad_t, ...)); return(__syscall((quad_t)SYS_ftruncate, fd, 0, length)); } diff --git a/lib/libc/sys/lseek.c b/lib/libc/sys/lseek.c index 10363bed96b..adc75f29b2f 100644 --- a/lib/libc/sys/lseek.c +++ b/lib/libc/sys/lseek.c @@ -54,7 +54,7 @@ lseek(fd, offset, whence) off_t offset; int whence; { - extern quad_t __syscall(); + extern off_t __syscall(); return(__syscall((quad_t)SYS_lseek, fd, 0, offset, whence)); } diff --git a/lib/libc/sys/mmap.c b/lib/libc/sys/mmap.c index b8ca3788ce9..442f3b1699b 100644 --- a/lib/libc/sys/mmap.c +++ b/lib/libc/sys/mmap.c @@ -58,7 +58,6 @@ mmap(addr, len, prot, flags, fd, offset) int fd; off_t offset; { - quad_t __syscall __P((quad_t, ...)); return((caddr_t)(long)__syscall((quad_t)SYS_mmap, addr, len, prot, flags, fd, 0, offset)); diff --git a/lib/libc/sys/truncate.c b/lib/libc/sys/truncate.c index e8b0d73212f..c54c6ed98ce 100644 --- a/lib/libc/sys/truncate.c +++ b/lib/libc/sys/truncate.c @@ -53,7 +53,6 @@ truncate(path, length) const char *path; off_t length; { - quad_t __syscall __P((quad_t, ...)); return(__syscall((quad_t)SYS_truncate, path, 0, length)); }