From 5389c2dfa137d93b59de02f7edb16521b0be6e71 Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Mon, 29 Sep 2003 19:02:26 +0000 Subject: [PATCH] Recent changes from 0.9.7-stable --- crypto/bio/bss_file.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crypto/bio/bss_file.c b/crypto/bio/bss_file.c index 1f9bd3312a..6904b5c081 100644 --- a/crypto/bio/bss_file.c +++ b/crypto/bio/bss_file.c @@ -215,9 +215,9 @@ static long MS_CALLBACK file_ctrl(BIO *b, int cmd, long num, void *ptr) b->init=1; #if defined(OPENSSL_SYS_WINDOWS) if (num & BIO_FP_TEXT) - _setmode(fd,_O_TEXT); + _setmode(fileno((FILE *)ptr),_O_TEXT); else - _setmode(fd,_O_BINARY); + _setmode(fileno((FILE *)ptr),_O_BINARY); #elif defined(OPENSSL_SYS_MSDOS) { int fd = fileno((FILE*)ptr); -- 2.25.1