summaryrefslogtreecommitdiff
path: root/sys/arch/sparc
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1997-11-11 10:53:13 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1997-11-11 10:53:13 +0000
commitffb73f9940518ac4abcf14bf949fd842680861e7 (patch)
treeef7f3296d27ce4c8b7e0acb62f98c625cff9effd /sys/arch/sparc
parentb12b68b30facdc50d1c50713d99d5bfffd0eef33 (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.c6
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);