From 7a8eea351bada8aaa94e779cbc9c4f3b8f2c34cf Mon Sep 17 00:00:00 2001 From: oster Date: Tue, 5 Dec 2000 01:35:56 +0000 Subject: Fix a couple of warnings about uninitialized variables. Thanks go to Frank van der Linden for pointing these out. --- sys/dev/raidframe/rf_disks.c | 4 +++- sys/dev/raidframe/rf_netbsdkintf.c | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'sys/dev/raidframe') 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) { -- cgit