mirror of
https://github.com/openssl/openssl.git
synced 2024-11-27 05:21:51 +08:00
Typo
This commit is contained in:
parent
b86ed8d18f
commit
61a88c31c0
@ -110,7 +110,7 @@ int RAND_load_file(const char *file, long bytes)
|
||||
|
||||
in=fopen(file,"rb");
|
||||
if (in == NULL) goto err;
|
||||
#if defined(S_IFBLK) && !defined(S_IFCHR)
|
||||
#if defined(S_IFBLK) && defined(S_IFCHR)
|
||||
if (sb.st_mode & (S_IFBLK | S_IFCHR)) {
|
||||
/* this file is a device. we don't want read an infinite number
|
||||
* of bytes from a random device, nor do we want to use buffered
|
||||
@ -153,7 +153,7 @@ int RAND_write_file(const char *file)
|
||||
|
||||
i=stat(file,&sb);
|
||||
if (i != -1) {
|
||||
#if defined(S_IFBLK) && !defined(S_IFCHR)
|
||||
#if defined(S_IFBLK) && defined(S_IFCHR)
|
||||
if (sb.st_mode & (S_IFBLK | S_IFCHR)) {
|
||||
/* this file is a device. we don't write back to it.
|
||||
* we "succeed" on the assumption this is some sort
|
||||
|
Loading…
Reference in New Issue
Block a user