summaryrefslogtreecommitdiffstats
path: root/lib/libc/sys/truncate.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2003-06-11 21:03:09 +0000
committerderaadt <deraadt@openbsd.org>2003-06-11 21:03:09 +0000
commitf723aa391085d188652b94aedd37f0dd94193fba (patch)
treee126833f2d9fa0dab58a426c7c390de874c0b447 /lib/libc/sys/truncate.c
parentsupport for NAT-T (draft-ietf-ipsec-udp-encaps-06.txt); ok deraadt@ (diff)
downloadwireguard-openbsd-f723aa391085d188652b94aedd37f0dd94193fba.tar.xz
wireguard-openbsd-f723aa391085d188652b94aedd37f0dd94193fba.zip
ansification; checked by pval
Diffstat (limited to 'lib/libc/sys/truncate.c')
-rw-r--r--lib/libc/sys/truncate.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/libc/sys/truncate.c b/lib/libc/sys/truncate.c
index cbb104cb94b..c4a2f8d88d2 100644
--- a/lib/libc/sys/truncate.c
+++ b/lib/libc/sys/truncate.c
@@ -28,7 +28,7 @@
*/
#if defined(SYSLIBC_SCCS) && !defined(lint)
-static char rcsid[] = "$OpenBSD: truncate.c,v 1.9 2003/06/02 20:18:39 millert Exp $";
+static char rcsid[] = "$OpenBSD: truncate.c,v 1.10 2003/06/11 21:03:10 deraadt Exp $";
#endif /* SYSLIBC_SCCS and not lint */
#include <sys/types.h>
@@ -43,9 +43,7 @@ quad_t __syscall(quad_t, ...);
* is not supplied by GCC 1.X but is supplied by GCC 2.X.
*/
int
-truncate(path, length)
- const char *path;
- off_t length;
+truncate(const char *path, off_t length)
{
return(__syscall((quad_t)SYS_truncate, path, 0, length));