From: Richard Levitte Date: Thu, 25 Mar 2004 20:01:08 +0000 (+0000) Subject: Wrap code starting with a definition. X-Git-Tag: OpenSSL_0_9_7e~135 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b7e3c73d7ce749665e2184a629cadcdfbe431316;p=openssl Wrap code starting with a definition. PR: 854 --- diff --git a/crypto/rand/randfile.c b/crypto/rand/randfile.c index f5d0843d13..c7fba496a8 100644 --- a/crypto/rand/randfile.c +++ b/crypto/rand/randfile.c @@ -166,6 +166,7 @@ int RAND_write_file(const char *file) } #if defined(O_CREAT) && !defined(OPENSSL_SYS_WIN32) + { /* For some reason Win32 can't write to files created this way */ /* chmod(..., 0600) is too late to protect the file, @@ -173,6 +174,7 @@ int RAND_write_file(const char *file) int fd = open(file, O_CREAT, 0600); if (fd != -1) out = fdopen(fd, "wb"); + } #endif if (out == NULL) out = fopen(file,"wb");