diff options
Diffstat (limited to 'lib/libc/sys/pwrite.c')
-rw-r--r-- | lib/libc/sys/pwrite.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/libc/sys/pwrite.c b/lib/libc/sys/pwrite.c index aae8319c102..c26ed9d1b40 100644 --- a/lib/libc/sys/pwrite.c +++ b/lib/libc/sys/pwrite.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pwrite.c,v 1.2 2001/05/05 22:58:30 millert Exp $ */ +/* $OpenBSD: pwrite.c,v 1.3 2002/09/17 12:57:50 mickey Exp $ */ /* * Copyright (c) 1992, 1993 @@ -34,7 +34,7 @@ */ #if defined(SYSLIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: pwrite.c,v 1.2 2001/05/05 22:58:30 millert Exp $"; +static char rcsid[] = "$OpenBSD: pwrite.c,v 1.3 2002/09/17 12:57:50 mickey Exp $"; #endif /* SYSLIBC_SCCS and not lint */ #include <sys/types.h> @@ -52,11 +52,10 @@ pwrite(fd, buf, nbyte, offset) size_t nbyte; off_t offset; { - extern off_t __syscall(); quad_t q; int rv; - q = __syscall((quad_t)SYS_pwrite, fd, buf, nbyte, 0, offset); + q = __syscall(SYS_pwrite, fd, buf, nbyte, 0, offset); if (/* LINTED constant */ sizeof (quad_t) == sizeof (register_t) || /* LINTED constant */ BYTE_ORDER == LITTLE_ENDIAN) rv = (int)q; |