Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/macppc/dev Initialize some auto vars to appaise gcc3.
details: https://anonhg.NetBSD.org/src/rev/a8016464cdb6
branches: trunk
changeset: 556792:a8016464cdb6
user: mjl <mjl%NetBSD.org@localhost>
date: Sat Dec 27 13:34:36 2003 +0000
description:
Initialize some auto vars to appaise gcc3.
diffstat:
sys/arch/macppc/dev/wdc_obio.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diffs (40 lines):
diff -r c321f4e5ffc0 -r a8016464cdb6 sys/arch/macppc/dev/wdc_obio.c
--- a/sys/arch/macppc/dev/wdc_obio.c Sat Dec 27 07:36:06 2003 +0000
+++ b/sys/arch/macppc/dev/wdc_obio.c Sat Dec 27 13:34:36 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: wdc_obio.c,v 1.30 2003/12/03 12:09:32 bouyer Exp $ */
+/* $NetBSD: wdc_obio.c,v 1.31 2003/12/27 13:34:36 mjl Exp $ */
/*-
* Copyright (c) 1998, 2003 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: wdc_obio.c,v 1.30 2003/12/03 12:09:32 bouyer Exp $");
+__KERNEL_RCSID(0, "$NetBSD: wdc_obio.c,v 1.31 2003/12/27 13:34:36 mjl Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -292,8 +292,8 @@
{
struct wdc_obio_softc *sc = (struct wdc_obio_softc *)chp->wdc;
int drive;
- int min_cycle, min_active;
- int cycle_tick, act_tick, inact_tick, half_tick;
+ int min_cycle = 0, min_active = 0;
+ int cycle_tick = 0, act_tick = 0, inact_tick = 0, half_tick;
for (drive = 0; drive < 2; drive++) {
u_int conf = 0;
@@ -359,8 +359,8 @@
{
struct wdc_obio_softc *sc = (struct wdc_obio_softc *)chp->wdc;
int drive;
- int min_cycle, min_active;
- int cycle_tick, act_tick, inact_tick;
+ int min_cycle = 0, min_active = 0;
+ int cycle_tick = 0, act_tick = 0, inact_tick = 0;
for (drive = 0; drive < 2; drive++) {
u_int conf = 0;
Home |
Main Index |
Thread Index |
Old Index