diff options
author | Richard Levitte <levitte@openssl.org> | 2004-01-29 02:55:43 +0000 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2004-01-29 02:55:43 +0000 |
commit | 61a88c31c00ed57c1f09e21f3cc26158e7f22699 (patch) | |
tree | dba071f9624b2b38f8ba46ce5226326c57ae5a5f /crypto/rand/randfile.c | |
parent | b86ed8d18fbdd3e7f409b17785dd41c520e88de6 (diff) |
Typo
Diffstat (limited to 'crypto/rand/randfile.c')
-rw-r--r-- | crypto/rand/randfile.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/rand/randfile.c b/crypto/rand/randfile.c index 8b072e0679..f5d0843d13 100644 --- a/crypto/rand/randfile.c +++ b/crypto/rand/randfile.c @@ -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 |