From: Richard Levitte Date: Thu, 29 Jan 2004 02:55:47 +0000 (+0000) Subject: Typo X-Git-Tag: OpenSSL_0_9_7d~30 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=319a2c5f659d41ea7a61d0878dc2b40364513688;p=oweals%2Fopenssl.git Typo --- 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