summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authortobias <tobias@openbsd.org>2007-09-10 14:29:53 +0000
committertobias <tobias@openbsd.org>2007-09-10 14:29:53 +0000
commita52c79cd89b98bad71f1be2d3c15f4f5e57120b6 (patch)
treeff8409067e933072693b0dea0f1eff8be45c72ef /lib/libc
parentAllow port specification in our CVSROOT which is used for our (diff)
downloadwireguard-openbsd-a52c79cd89b98bad71f1be2d3c15f4f5e57120b6.tar.xz
wireguard-openbsd-a52c79cd89b98bad71f1be2d3c15f4f5e57120b6.zip
Proper use of fseek/fseeko macros.
OK joris@, otto@
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/rpc/xdr_stdio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/rpc/xdr_stdio.c b/lib/libc/rpc/xdr_stdio.c
index f60c50ef79b..d4a7e1a235a 100644
--- a/lib/libc/rpc/xdr_stdio.c
+++ b/lib/libc/rpc/xdr_stdio.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: xdr_stdio.c,v 1.9 2005/10/30 19:44:52 kettenis Exp $ */
+/* $OpenBSD: xdr_stdio.c,v 1.10 2007/09/10 14:29:53 tobias Exp $ */
/*
* Sun RPC is a product of Sun Microsystems, Inc. and is provided for
* unrestricted use provided that this legend is included on all tape
@@ -142,7 +142,7 @@ static bool_t
xdrstdio_setpos(XDR *xdrs, u_int pos)
{
- return ((fseek((FILE *)xdrs->x_private, (long)pos, 0) < 0) ?
+ return ((fseek((FILE *)xdrs->x_private, (long)pos, SEEK_SET) < 0) ?
FALSE : TRUE);
}