projects
/
oweals
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
The main() return value is a program's exit code.
[oweals/openssl.git]
/
crypto
/
bio
/
bss_file.c
diff --git
a/crypto/bio/bss_file.c
b/crypto/bio/bss_file.c
index 323286b09fcd2fba808745edd9b1cec369f617b3..0d44dc388968975751f5d535277118b92be62b18 100644
(file)
--- a/
crypto/bio/bss_file.c
+++ b/
crypto/bio/bss_file.c
@@
-91,9
+91,10
@@
static BIO_METHOD methods_filep=
file_ctrl,
file_new,
file_free,
file_ctrl,
file_new,
file_free,
+ NULL,
};
};
-BIO *BIO_new_file(c
har *filename,
char *mode)
+BIO *BIO_new_file(c
onst char *filename, const
char *mode)
{
BIO *ret;
FILE *file;
{
BIO *ret;
FILE *file;
@@
-171,7
+172,7
@@
static int MS_CALLBACK file_write(BIO *b, char *in, int inl)
if (fwrite(in,(int)inl,1,(FILE *)b->ptr))
ret=inl;
/* ret=fwrite(in,1,(int)inl,(FILE *)b->ptr); */
if (fwrite(in,(int)inl,1,(FILE *)b->ptr))
ret=inl;
/* ret=fwrite(in,1,(int)inl,(FILE *)b->ptr); */
- /* acording to Tim Hudson <tjh@cryptsoft.com>, the commented
+ /* ac
c
ording to Tim Hudson <tjh@cryptsoft.com>, the commented
* out version above can cause 'inl' write calls under
* some stupid stdio implementations (VMS) */
}
* out version above can cause 'inl' write calls under
* some stupid stdio implementations (VMS) */
}
@@
-200,7
+201,7
@@
static long MS_CALLBACK file_ctrl(BIO *b, int cmd, long num, char *ptr)
break;
case BIO_C_SET_FILE_PTR:
file_free(b);
break;
case BIO_C_SET_FILE_PTR:
file_free(b);
- b->shutdown=(int)num;
+ b->shutdown=(int)num
&BIO_CLOSE
;
b->ptr=(char *)ptr;
b->init=1;
#if defined(MSDOS) || defined(WINDOWS)
b->ptr=(char *)ptr;
b->init=1;
#if defined(MSDOS) || defined(WINDOWS)