summaryrefslogtreecommitdiffstats
path: root/sys/i386
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1995-11-20 12:12:02 +0000
committerphk <phk@FreeBSD.org>1995-11-20 12:12:02 +0000
commit4cf530b9304efd7da6b2ef1a5718bf8df5a33491 (patch)
tree8af3e238164766cf9a0af68ad3df111d005249a4 /sys/i386
parente55828b00a69d81c03beb0e49c889eca9709bf93 (diff)
downloadFreeBSD-src-4cf530b9304efd7da6b2ef1a5718bf8df5a33491.zip
FreeBSD-src-4cf530b9304efd7da6b2ef1a5718bf8df5a33491.tar.gz
move variables inside the #ifdef.
Diffstat (limited to 'sys/i386')
-rw-r--r--sys/i386/isa/random.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/i386/isa/random.c b/sys/i386/isa/random.c
index 3105e7b..89a7453 100644
--- a/sys/i386/isa/random.c
+++ b/sys/i386/isa/random.c
@@ -1,7 +1,7 @@
/*
* 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
*
@@ -94,14 +94,15 @@ flush_random(struct random_bucket *random_state)
void
rand_initialize(void)
{
- int irq;
- long interrupts;
random_state.length = RANDPOOL;
random_state.pool = random_pool;
flush_random(&random_state);
#if 0
+ {
+ int irq;
+ long interrupts;
/* XXX Dreadful hack - should be replaced by something more elegant */
interrupts = RANDOM_INTERRUPTS;
@@ -111,6 +112,7 @@ rand_initialize(void)
printf("Randomising irq %d %s\n", irq, interrupt_allowed[irq] ?
"on" : "off");
}
+ }
#endif
}
OpenPOWER on IntegriCloud