From b2e7419a1d453bf39dbe38620a10069ec799da65 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bodo=20M=C3=B6ller?= Date: Sun, 17 Dec 2000 00:30:03 +0000 Subject: [PATCH] Simplify preprocessor statements. --- crypto/rand/rand_win.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/crypto/rand/rand_win.c b/crypto/rand/rand_win.c index e8e12e21c7..eed64e62a2 100644 --- a/crypto/rand/rand_win.c +++ b/crypto/rand/rand_win.c @@ -688,17 +688,18 @@ static void readscreen(void) #include +#ifdef NO_FP_API +# undef DEVRANDOM +#endif + int RAND_poll(void) { unsigned long l; pid_t curr_pid = getpid(); -#ifndef NO_FP_API #ifdef DEVRANDOM FILE *fh; #endif -#endif -#ifndef NO_FP_API #ifdef DEVRANDOM /* Use a random entropy pool device. Linux, FreeBSD and OpenBSD * have this. Use /dev/urandom if you can as /dev/random may block @@ -715,7 +716,6 @@ int RAND_poll(void) RAND_add(tmpbuf,sizeof tmpbuf,n); memset(tmpbuf,0,n); } -#endif #endif /* put in some default random data, we need more than just this */ @@ -727,10 +727,8 @@ int RAND_poll(void) l=time(NULL); RAND_add(&l,sizeof(l),0); -#ifndef NO_FP_API #ifdef DEVRANDOM return 1; -#endif #endif return 0; } -- 2.34.1