Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 01 Mar 2013 13:49:29 -0800
From:      Xin Li <delphij@delphij.net>
To:        marius@freebsd.org, current@freebsd.org
Subject:   [PATCH] Fix build after r247570
Message-ID:  <51312269.9050502@delphij.net>

next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------040401040606010803030302
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Hi, Marius,

The attached patch fixes two places where 'count' is not properly
initialized.  They should be merged together when 247570 is merged.

Cheers,
- -- 
Xin LI <delphij@delphij.net>    https://www.delphij.net/
FreeBSD - The Power to Serve!           Live free or die
-----BEGIN PGP SIGNATURE-----

iQEcBAEBCgAGBQJRMSJpAAoJEG80Jeu8UPuzsxsH/2cArvN1kjTXod8IlSVh3ImV
81pjIcBoNRDAOes6lptsdOOdOeNg4/MweG2PT1ZpxQ5yUQHdBld9eIsaruYnD2/y
RcfGeMdSJCZ216yaFHLu54nxvlJJXK1lsO1R1cdeBDdSoQChXulVv38FnKiB9J1m
ldFCC8oBdPX6yCRR5ZIuLXHXYXZjGw0Vyvta74NFTNwysrUcgtLT/1tpDpcVtDdd
Kd+hJtBif4+3zk4py6IS9qiiiO5wC2YkCC5oNhKy2Dh48l/QIagj0Fx/dWRNW8Q4
VUnKJMn4wnnrEmXAFxKMECaFWXKMmI7pQ/dxLMCaMSl2WJgVxHt5skv4iLKcgxc=
=Ah/7
-----END PGP SIGNATURE-----

--------------040401040606010803030302
Content-Type: text/plain; charset=UTF-8;
 name="aac-bce-build-fix.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
 filename="aac-bce-build-fix.diff"

Index: sys/dev/aac/aac_pci.c
===================================================================
--- sys/dev/aac/aac_pci.c	(revision 247583)
+++ sys/dev/aac/aac_pci.c	(working copy)
@@ -340,7 +340,7 @@ aac_pci_attach(device_t dev)
 {
 	struct aac_softc *sc;
 	const struct aac_ident *id;
-	int count, error, reg, rid;
+	int count = 0, error, reg, rid;
 
 	fwprintf(NULL, HBA_FLAGS_DBG_FUNCTION_ENTRY_B, "");
 
Index: sys/dev/bce/if_bce.c
===================================================================
--- sys/dev/bce/if_bce.c	(revision 247583)
+++ sys/dev/bce/if_bce.c	(working copy)
@@ -1039,7 +1039,7 @@ bce_attach(device_t dev)
 	struct bce_softc *sc;
 	struct ifnet *ifp;
 	u32 val;
-	int count, error, rc = 0, rid;
+	int count = 0, error, rc = 0, rid;
 
 	sc = device_get_softc(dev);
 	sc->bce_dev = dev;

--------------040401040606010803030302--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?51312269.9050502>