Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/raidframe Fix a couple of warnings about uninitializ...



details:   https://anonhg.NetBSD.org/src/rev/6617ae265a8c
branches:  trunk
changeset: 500086:6617ae265a8c
user:      oster <oster%NetBSD.org@localhost>
date:      Tue Dec 05 01:35:56 2000 +0000

description:
Fix a couple of warnings about uninitialized variables.  Thanks go to
Frank van der Linden for pointing these out.

diffstat:

 sys/dev/raidframe/rf_disks.c       |  4 +++-
 sys/dev/raidframe/rf_netbsdkintf.c |  4 +++-
 2 files changed, 6 insertions(+), 2 deletions(-)

diffs (50 lines):

diff -r 86b521c6d74e -r 6617ae265a8c sys/dev/raidframe/rf_disks.c
--- a/sys/dev/raidframe/rf_disks.c      Tue Dec 05 00:44:21 2000 +0000
+++ b/sys/dev/raidframe/rf_disks.c      Tue Dec 05 01:35:56 2000 +0000
@@ -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 @@
 
        /* 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 @@
                ac = ac->next;
        }
 
+       bs = 0;
        for (r = 0; r < raidPtr->numRow; r++) {
                numFailuresThisRow = 0;
                for (c = 0; c < raidPtr->numCol; c++) {
diff -r 86b521c6d74e -r 6617ae265a8c sys/dev/raidframe/rf_netbsdkintf.c
--- a/sys/dev/raidframe/rf_netbsdkintf.c        Tue Dec 05 00:44:21 2000 +0000
+++ b/sys/dev/raidframe/rf_netbsdkintf.c        Tue Dec 05 01:35:56 2000 +0000
@@ -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 @@
        int rootID;
        int num_root;
 
+       rootID = 0;
        num_root = 0;
        cset = config_sets;
        while(cset != NULL ) {
@@ -2946,6 +2947,7 @@
        /* 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) {



Home | Main Index | Thread Index | Old Index