From owner-cvs-all Tue Feb 26 12:51:54 2002 Delivered-To: cvs-all@freebsd.org Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by hub.freebsd.org (Postfix) with ESMTP id 11F5E37B41B; Tue, 26 Feb 2002 12:51:48 -0800 (PST) Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.11.0/8.11.0) id g1QKpfA23584; Tue, 26 Feb 2002 12:51:41 -0800 Date: Tue, 26 Feb 2002 12:51:41 -0800 From: Brooks Davis To: Mikhail Teterin Cc: brooks@FreeBSD.org, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/dev/awi if_awi_pccard.c Message-ID: <20020226125141.A21438@Odin.AC.HMC.Edu> References: <200202262009.g1QK9Kv90960@freefall.freebsd.org> <200202262044.g1QKigX25029@aldan.algebra.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="cWoXeonUoKmBZSoM" Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <200202262044.g1QKigX25029@aldan.algebra.com>; from mi@aldan.algebra.com on Tue, Feb 26, 2002 at 03:44:40PM -0500 Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --cWoXeonUoKmBZSoM Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Feb 26, 2002 at 03:44:40PM -0500, Mikhail Teterin wrote: > On 26 Feb, Brooks Davis wrote: > > brooks 2002/02/26 12:09:19 PST > >=20 > > Modified files: > > sys/dev/awi if_awi_pccard.c=20 > > Log: > > Set ifp->if_name to "awi" instead of device_get_name(dev) to avoid > > casting away a const qualifier so the awi driver compiles. >=20 > Is not this workaround an indication, that device_get_name(dev) should > be returning ``const char*''? The problem is that device_get_name IS returning "const char*". ifp->if_name is not const so the assignment discards the qualifier. I suspect we could change that, but this change is pretty harmless. -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --cWoXeonUoKmBZSoM Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE8e/VcXY6L6fI4GtQRAjGpAKDWvdnsHLmVMAJe+4Q1ieZIXDhw5gCfV70J 29DYTz0yRSSo/rBF6JsWc3U= =ZoBp -----END PGP SIGNATURE----- --cWoXeonUoKmBZSoM-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message