Received: from eggs.gnu.org ([2001:4830:134:3::10]:59106) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XZh6N-0000zb-3f for qemu-devel@nongnu.org; Thu, 02 Oct 2014 10:11:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XZh6E-0002op-2Z for qemu-devel@nongnu.org; Thu, 02 Oct 2014 10:11:27 -0400 Received: from mail-wg0-x229.google.com ([2a00:1450:400c:c00::229]:64851) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XZh6D-0002ok-SE for qemu-devel@nongnu.org; Thu, 02 Oct 2014 10:11:18 -0400 Received: by mail-wg0-f41.google.com with SMTP id b13so3346710wgh.24 for ; Thu, 02 Oct 2014 07:11:17 -0700 (PDT) Date: Thu, 2 Oct 2014 15:11:14 +0100 From: Stefan Hajnoczi Message-ID: <20141002141114.GB6250@stefanha-thinkpad.redhat.com> References: <1412078370-3555-1-git-send-email-armbru@redhat.com> <20141002131826.GC30564@stefanha-thinkpad.redhat.com> <87tx3md1vm.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="gj572EiMnwbLXET9" Content-Disposition: inline In-Reply-To: <87tx3md1vm.fsf@blackfin.pond.sub.org> Subject: Re: [Qemu-devel] [PATCH] util: Emancipate id_wellformed() from QemuOpts List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Markus Armbruster Cc: kwolf@redhat.com, qemu-devel@nongnu.org, stefanha@redhat.com --gj572EiMnwbLXET9 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Oct 02, 2014 at 03:42:21PM +0200, Markus Armbruster wrote: > Stefan Hajnoczi writes: >=20 > > On Tue, Sep 30, 2014 at 01:59:30PM +0200, Markus Armbruster wrote: > >> +bool id_wellformed(const char *id) > >> +{ > >> + int i; > >> + > >> + if (!qemu_isalpha(id[0])) { > >> + return 0; > > > > false would be a bit nicer since the other return cases use true/false. >=20 > Missed when I changed the value to bool. Would you be willing to fix > this up on commit? If not, I'll respin. Yes, I'll fix it when merging tomorrow. Stefan --gj572EiMnwbLXET9 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJULV0CAAoJEJykq7OBq3PILKkIAKiPInvlgOQZa2Yxjp2eS2wm eKjZo4lPzUSCHLvKPqgEHYHW+DWANrCCf7mKg4jrrbu/v52zAwqYlCapxqOjvh9W xp14+bJRElr/J49CkkL7LupOX6MTvMYRbujtwf0HX/WI9WYna2F12ErtzQdO17/l dcqnTE6PVF3ZX+6mOu5wnWr69/kjpI6RetDGl/MzXYg7OsYuntaxjGLhPtlPJF2a 7+N0v0NvAbexX6JxFjv25y4gyZ7Iu4rm8oHz41lfGPqha/R67X/1LggV+K9KQQ+z ZH3yI0gpSnS5EnDlGVIh5BdhZc9JdWoFvv4XV9SaixNLqjJ/cbnJ5KZaeJyBfkc= =LqKX -----END PGP SIGNATURE----- --gj572EiMnwbLXET9--