diff options
author | Tobias Stoeckmann <tobias@cvs.openbsd.org> | 2007-09-10 14:29:54 +0000 |
---|---|---|
committer | Tobias Stoeckmann <tobias@cvs.openbsd.org> | 2007-09-10 14:29:54 +0000 |
commit | 4bb6947b738392d059ccec81a601802f2a3f67e1 (patch) | |
tree | 6a47a9a7c15a9808ef0d3524f9dd977949038843 /lib | |
parent | e617d3130f4ee9ff3df5781cfc30d5a8c8d9a52c (diff) |
Proper use of fseek/fseeko macros.
OK joris@, otto@
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/rpc/xdr_stdio.c | 4 | ||||
-rw-r--r-- | lib/libssl/src/crypto/bio/bss_file.c | 2 |
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); |