summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTobias Stoeckmann <tobias@cvs.openbsd.org>2007-09-10 14:29:54 +0000
committerTobias Stoeckmann <tobias@cvs.openbsd.org>2007-09-10 14:29:54 +0000
commit4bb6947b738392d059ccec81a601802f2a3f67e1 (patch)
tree6a47a9a7c15a9808ef0d3524f9dd977949038843 /lib
parente617d3130f4ee9ff3df5781cfc30d5a8c8d9a52c (diff)
Proper use of fseek/fseeko macros.
OK joris@, otto@
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/rpc/xdr_stdio.c4
-rw-r--r--lib/libssl/src/crypto/bio/bss_file.c2
2 files changed, 3 insertions, 3 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);
}
diff --git a/lib/libssl/src/crypto/bio/bss_file.c b/lib/libssl/src/crypto/bio/bss_file.c
index 8034ac93f97..58fade9f297 100644
--- a/lib/libssl/src/crypto/bio/bss_file.c
+++ b/lib/libssl/src/crypto/bio/bss_file.c
@@ -199,7 +199,7 @@ static long MS_CALLBACK file_ctrl(BIO *b, int cmd, long num, void *ptr)
{
case BIO_C_FILE_SEEK:
case BIO_CTRL_RESET:
- ret=(long)fseek(fp,num,0);
+ ret=(long)fseek(fp,num,SEEK_SET);
break;
case BIO_CTRL_EOF:
ret=(long)feof(fp);