diff options
Diffstat (limited to 'lib/libc/sys/pwrite.c')
-rw-r--r-- | lib/libc/sys/pwrite.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/libc/sys/pwrite.c b/lib/libc/sys/pwrite.c index 8757bf9a272..445b12ab430 100644 --- a/lib/libc/sys/pwrite.c +++ b/lib/libc/sys/pwrite.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pwrite.c,v 1.9 2011/10/16 06:29:56 guenther Exp $ */ +/* $OpenBSD: pwrite.c,v 1.10 2015/09/11 13:26:20 guenther Exp $ */ /* * Copyright (c) 1992, 1993 @@ -29,14 +29,13 @@ * SUCH DAMAGE. */ -#include <sys/types.h> #include <sys/syscall.h> #include <unistd.h> #include "thread_private.h" -register_t __syscall(quad_t, ...); +ssize_t __syscall(quad_t, ...); +PROTO_NORMAL(__syscall); -/* pread is weak to support libpthread cancellation */ STUB_PROTOTYPE(pwrite); @@ -49,6 +48,5 @@ STUB_ALIAS(pwrite); ssize_t STUB_NAME(pwrite)(int fd, const void *buf, size_t nbyte, off_t offset) { - - return (__syscall((quad_t)SYS_pwrite, fd, buf, nbyte, 0, offset)); + return (__syscall(SYS_pwrite, fd, buf, nbyte, 0, offset)); } |