move variables inside the #ifdef.

This commit is contained in:
Poul-Henning Kamp 1995-11-20 12:12:02 +00:00
parent 52813bb5e5
commit 0f6873dbcc

View File

@ -1,7 +1,7 @@
/* /*
* random.c -- A strong random number generator * random.c -- A strong random number generator
* *
* $Id: random.c,v 1.1 1995/10/28 16:58:02 markm Exp $ * $Id: random.c,v 1.2 1995/11/04 16:00:50 markm Exp $
* *
* Version 0.92, last modified 21-Sep-95 * Version 0.92, last modified 21-Sep-95
* *
@ -94,14 +94,15 @@ flush_random(struct random_bucket *random_state)
void void
rand_initialize(void) rand_initialize(void)
{ {
int irq;
long interrupts;
random_state.length = RANDPOOL; random_state.length = RANDPOOL;
random_state.pool = random_pool; random_state.pool = random_pool;
flush_random(&random_state); flush_random(&random_state);
#if 0 #if 0
{
int irq;
long interrupts;
/* XXX Dreadful hack - should be replaced by something more elegant */ /* XXX Dreadful hack - should be replaced by something more elegant */
interrupts = RANDOM_INTERRUPTS; interrupts = RANDOM_INTERRUPTS;
@ -111,6 +112,7 @@ rand_initialize(void)
printf("Randomising irq %d %s\n", irq, interrupt_allowed[irq] ? printf("Randomising irq %d %s\n", irq, interrupt_allowed[irq] ?
"on" : "off"); "on" : "off");
} }
}
#endif #endif
} }