Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/mac68k/obio Initialize some "might (not) be used un...



details:   https://anonhg.NetBSD.org/src/rev/c1ebf4f5d15c
branches:  trunk
changeset: 554401:c1ebf4f5d15c
user:      fredb <fredb%NetBSD.org@localhost>
date:      Mon Oct 27 22:16:04 2003 +0000

description:
Initialize some "might (not) be used uninitialized" variables.

diffstat:

 sys/arch/mac68k/obio/iwm_fd.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (35 lines):

diff -r 5d54931307a1 -r c1ebf4f5d15c sys/arch/mac68k/obio/iwm_fd.c
--- a/sys/arch/mac68k/obio/iwm_fd.c     Mon Oct 27 21:54:24 2003 +0000
+++ b/sys/arch/mac68k/obio/iwm_fd.c     Mon Oct 27 22:16:04 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: iwm_fd.c,v 1.24 2003/07/15 02:43:25 lukem Exp $        */
+/*     $NetBSD: iwm_fd.c,v 1.25 2003/10/27 22:16:04 fredb Exp $        */
 
 /*
  * Copyright (c) 1997, 1998 Hauke Fath.  All rights reserved.
@@ -34,7 +34,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: iwm_fd.c,v 1.24 2003/07/15 02:43:25 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: iwm_fd.c,v 1.25 2003/10/27 22:16:04 fredb Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -660,6 +660,7 @@
        iwm_softc_t *iwm = iwm_cd.cd_devs[0];
 #endif
        info = NULL;            /* XXX shut up egcs */
+       fd = NULL;              /* XXX shut up gcc3 */
 
        /*
         * See <device.h> for struct cfdriver, <disklabel.h> for
@@ -1018,6 +1019,8 @@
 
        err = 0;
        done = 0;
+       sectSize = 0;           /* XXX shut up gcc3 */
+       fd = NULL;              /* XXX shut up gcc3 */
 
        fdUnit = minor(bp->b_dev) / MAXPARTITIONS;
        if (TRACE_STRAT) {



Home | Main Index | Thread Index | Old Index