Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ieee1394 Fix unitialized variable warnings.
details: https://anonhg.NetBSD.org/src/rev/a73f3919b67f
branches: trunk
changeset: 554280:a73f3919b67f
user: christos <christos%NetBSD.org@localhost>
date: Sun Oct 26 19:10:42 2003 +0000
description:
Fix unitialized variable warnings.
diffstat:
sys/dev/ieee1394/fwohci.c | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diffs (39 lines):
diff -r 284bdb26210f -r a73f3919b67f sys/dev/ieee1394/fwohci.c
--- a/sys/dev/ieee1394/fwohci.c Sun Oct 26 19:09:44 2003 +0000
+++ b/sys/dev/ieee1394/fwohci.c Sun Oct 26 19:10:42 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fwohci.c,v 1.79 2003/10/22 09:02:49 mjl Exp $ */
+/* $NetBSD: fwohci.c,v 1.80 2003/10/26 19:10:42 christos Exp $ */
/*-
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -49,7 +49,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fwohci.c,v 1.79 2003/10/22 09:02:49 mjl Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fwohci.c,v 1.80 2003/10/26 19:10:42 christos Exp $");
#define FWOHCI_WAIT_DEBUG 1
@@ -2168,8 +2168,10 @@
(pkt.fp_tcode == IEEE1394_TCODE_READ_REQ_BLOCK)) {
len = (pkt.fp_hdr[3] & 0xffff0000) >> 16;
naddr = ((u_int64_t)key1 << 32) + key2;
- } else
+ } else {
len = 0;
+ naddr = 0; /* XXX: gcc */
+ }
for (fh = LIST_FIRST(&fc->fc_handler); fh != NULL;
fh = LIST_NEXT(fh, fh_list)) {
if (pkt.fp_tcode == fh->fh_tcode) {
@@ -3529,7 +3531,7 @@
struct fwohci_softc *sc = (struct fwohci_softc *)self;
struct fwohci_pkt pkt;
u_int8_t *p;
- int n, error, spd, hdrlen, maxrec;
+ int n = 0, error, spd, hdrlen, maxrec; /* XXX: gcc */
#ifdef FW_DEBUG
struct mbuf *m;
#endif
Home |
Main Index |
Thread Index |
Old Index