diff options
author | markm <markm@FreeBSD.org> | 2000-06-28 18:51:15 +0000 |
---|---|---|
committer | markm <markm@FreeBSD.org> | 2000-06-28 18:51:15 +0000 |
commit | f32bce812decf70d2845eb2137672076911e470e (patch) | |
tree | b9f760374ec040aa28e55bf285ac0dd422a207c5 /sys/dev/random/randomdev.c | |
parent | 9b9369d90eea0c073368daad0cf0e48083929081 (diff) | |
download | FreeBSD-src-f32bce812decf70d2845eb2137672076911e470e.zip FreeBSD-src-f32bce812decf70d2845eb2137672076911e470e.tar.gz |
Staticize a variable.
This fixes the case where linking randomdev into the kernel statically
can cause panics at shutdown time.
Reported by: sos
Diffstat (limited to 'sys/dev/random/randomdev.c')
-rw-r--r-- | sys/dev/random/randomdev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/random/randomdev.c b/sys/dev/random/randomdev.c index 9e0a918..2ef9e9d 100644 --- a/sys/dev/random/randomdev.c +++ b/sys/dev/random/randomdev.c @@ -74,7 +74,7 @@ static struct cdevsw random_cdevsw = { static dev_t randomdev; static dev_t urandomdev; -void *buf; +static void *buf; extern void randominit(void); |