summaryrefslogtreecommitdiff
path: root/sys/dev/raidframe
diff options
context:
space:
mode:
authoroster <oster@NetBSD.org>2000-12-05 01:35:56 +0000
committeroster <oster@NetBSD.org>2000-12-05 01:35:56 +0000
commit7a8eea351bada8aaa94e779cbc9c4f3b8f2c34cf (patch)
tree6464be6d16017e04f717491bfa65fe8b517f6ab5 /sys/dev/raidframe
parent2caf09a60275a6d5b1ced1f01694c089db77f7f0 (diff)
Fix a couple of warnings about uninitialized variables. Thanks go to
Frank van der Linden for pointing these out.
Diffstat (limited to 'sys/dev/raidframe')
-rw-r--r--sys/dev/raidframe/rf_disks.c4
-rw-r--r--sys/dev/raidframe/rf_netbsdkintf.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/sys/dev/raidframe/rf_disks.c b/sys/dev/raidframe/rf_disks.c
index 931c6241ef0..ec1700dcb6e 100644
--- a/sys/dev/raidframe/rf_disks.c
+++ b/sys/dev/raidframe/rf_disks.c
@@ -1,4 +1,4 @@
-/* $NetBSD: rf_disks.c,v 1.33 2000/09/21 01:37:36 oster Exp $ */
+/* $NetBSD: rf_disks.c,v 1.34 2000/12/05 01:35:56 oster Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -406,6 +406,7 @@ rf_AutoConfigureDisks(raidPtr, cfgPtr, auto_config)
/* Check for mod_counters that are too low */
mod_counter_found = 0;
+ mod_counter = 0;
ac = auto_config;
while(ac!=NULL) {
if (mod_counter_found==0) {
@@ -420,6 +421,7 @@ rf_AutoConfigureDisks(raidPtr, cfgPtr, auto_config)
ac = ac->next;
}
+ bs = 0;
for (r = 0; r < raidPtr->numRow; r++) {
numFailuresThisRow = 0;
for (c = 0; c < raidPtr->numCol; c++) {
diff --git a/sys/dev/raidframe/rf_netbsdkintf.c b/sys/dev/raidframe/rf_netbsdkintf.c
index 4374cca1b9a..888d53e2d7e 100644
--- a/sys/dev/raidframe/rf_netbsdkintf.c
+++ b/sys/dev/raidframe/rf_netbsdkintf.c
@@ -1,4 +1,4 @@
-/* $NetBSD: rf_netbsdkintf.c,v 1.100 2000/11/20 08:24:24 chs Exp $ */
+/* $NetBSD: rf_netbsdkintf.c,v 1.101 2000/12/05 01:35:56 oster Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -423,6 +423,7 @@ rf_buildroothack(arg)
int rootID;
int num_root;
+ rootID = 0;
num_root = 0;
cset = config_sets;
while(cset != NULL ) {
@@ -2946,6 +2947,7 @@ rf_have_enough_components(cset)
/* Determine what the mod_counter is supposed to be for this set. */
mod_counter_found = 0;
+ mod_counter = 0;
ac = cset->ac;
while(ac!=NULL) {
if (mod_counter_found==0) {