diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1997-11-11 10:53:13 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1997-11-11 10:53:13 +0000 |
commit | ffb73f9940518ac4abcf14bf949fd842680861e7 (patch) | |
tree | ef7f3296d27ce4c8b7e0acb62f98c625cff9effd /sys/arch/sparc | |
parent | b12b68b30facdc50d1c50713d99d5bfffd0eef33 (diff) |
A vital variable was not initialized! Thanks DDB, and you...
remember to kill those static specifiers.
Diffstat (limited to 'sys/arch/sparc')
-rw-r--r-- | sys/arch/sparc/sparc/memreg.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/sparc/sparc/memreg.c b/sys/arch/sparc/sparc/memreg.c index c4f1b8d3964..678bf299176 100644 --- a/sys/arch/sparc/sparc/memreg.c +++ b/sys/arch/sparc/sparc/memreg.c @@ -1,4 +1,4 @@ -/* $OpenBSD: memreg.c,v 1.6 1997/11/11 10:47:23 niklas Exp $ */ +/* $OpenBSD: memreg.c,v 1.7 1997/11/11 10:53:12 niklas Exp $ */ /* $NetBSD: memreg.c,v 1.21 1997/07/29 09:42:08 fair Exp $ */ /* @@ -86,13 +86,13 @@ memregmatch(parent, vcf, aux) struct device *parent; void *vcf, *aux; { - register struct cfdata *cf; + register struct cfdata *cf = vcf; register struct confargs *ca = aux; if (CPU_ISSUN4) { if (ca->ca_bustype == BUS_OBIO) return (strcmp(cf->cf_driver->cd_name, - ca->ca_ra.ra_name) == 0); + ca->ca_ra.ra_name) == 0); return (0); } return (strcmp("memory-error", ca->ca_ra.ra_name) == 0); |