From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43708) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bStQY-0006vB-AN for qemu-devel@nongnu.org; Thu, 28 Jul 2016 18:05:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bStQT-0004MC-1c for qemu-devel@nongnu.org; Thu, 28 Jul 2016 18:05:14 -0400 Received: from mx1.redhat.com ([209.132.183.28]:50488) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bStQS-0004Lw-SI for qemu-devel@nongnu.org; Thu, 28 Jul 2016 18:05:08 -0400 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 7E4DF3919B5 for ; Thu, 28 Jul 2016 22:05:08 +0000 (UTC) References: <20160728143808.13707-1-marcandre.lureau@redhat.com> <20160728143808.13707-33-marcandre.lureau@redhat.com> From: Eric Blake Message-ID: <579A8193.8090601@redhat.com> Date: Thu, 28 Jul 2016 16:05:07 -0600 MIME-Version: 1.0 In-Reply-To: <20160728143808.13707-33-marcandre.lureau@redhat.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="LEBLRuRLFpbIWt7j5mMWtM47CeAsjK38n" Subject: Re: [Qemu-devel] [PATCH v2 32/37] bus: simplify name handling List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: marcandre.lureau@redhat.com, qemu-devel@nongnu.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --LEBLRuRLFpbIWt7j5mMWtM47CeAsjK38n From: Eric Blake To: marcandre.lureau@redhat.com, qemu-devel@nongnu.org Message-ID: <579A8193.8090601@redhat.com> Subject: Re: [PATCH v2 32/37] bus: simplify name handling References: <20160728143808.13707-1-marcandre.lureau@redhat.com> <20160728143808.13707-33-marcandre.lureau@redhat.com> In-Reply-To: <20160728143808.13707-33-marcandre.lureau@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 07/28/2016 08:38 AM, marcandre.lureau@redhat.com wrote: > From: Marc-Andr=C3=A9 Lureau >=20 > Simplify a bit the code by using g_strdup_printf() and store it in a > non-const value so casting is no longer needed, and ownership is > clearer. >=20 > Signed-off-by: Marc-Andr=C3=A9 Lureau > --- > hw/core/bus.c | 21 ++++++--------------- > include/hw/qdev-core.h | 2 +- > 2 files changed, 7 insertions(+), 16 deletions(-) Reviewed-by: Eric Blake --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --LEBLRuRLFpbIWt7j5mMWtM47CeAsjK38n Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJXmoGTAAoJEKeha0olJ0NqlJQH/1v+Qj+Ta7yuwJoG3TB+af6o ZG73N76oro4buXvgVt0OGFTzgEdMlTaTiCe2zeyTcrDQPuYy7+XDxRQC6sOXwM3y 9E8gX1nWaY6Y71GcIp+xKwfi6B7svvXgWwYC8t7HOld2GPjlKL3axT1jGPMke6aX uS53M63QP1p1OlCU0fnB29OZHjh5vqZ2x+ANZPByhXe/6dUCwgae771i6DagJ/K1 CjZUpBvcdsaq6q6PN1dY0gdFHT2LSM8GBoLABwadGkNwzmMHKG3+Zlglcm/WDIpa LJOUUQk3CaGuEDw8k7J4eh9Z/noPSFtlATxsxeOeDZH8m4/ued4YqhiBaP/H/8U= =U0Oq -----END PGP SIGNATURE----- --LEBLRuRLFpbIWt7j5mMWtM47CeAsjK38n--