From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=60787 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PfICa-0006Sx-Jm for qemu-devel@nongnu.org; Tue, 18 Jan 2011 15:31:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PfIBw-0000HC-CF for qemu-devel@nongnu.org; Tue, 18 Jan 2011 15:30:52 -0500 Received: from mail-iw0-f173.google.com ([209.85.214.173]:40756) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PfIBw-0000GU-8k for qemu-devel@nongnu.org; Tue, 18 Jan 2011 15:30:12 -0500 Received: by iwn40 with SMTP id 40so52128iwn.4 for ; Tue, 18 Jan 2011 12:30:11 -0800 (PST) Message-ID: <4D35F84A.3060806@codemonkey.ws> Date: Tue, 18 Jan 2011 14:30:02 -0600 From: Anthony Liguori MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH 2/2] strtosz(): Use suffix macros in switch() statement References: <1295284345-24524-1-git-send-email-Jes.Sorensen@redhat.com> <1295284345-24524-3-git-send-email-Jes.Sorensen@redhat.com> <4D35C4E7.4080704@codemonkey.ws> <4D35C57A.4040206@redhat.com> In-Reply-To: <4D35C57A.4040206@redhat.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake Cc: kwolf@redhat.com, Jes.Sorensen@redhat.com, Alex.Williamson@redhat.com, Markus Armbruster , qemu-devel@nongnu.org On 01/18/2011 10:53 AM, Eric Blake wrote: > On 01/18/2011 09:50 AM, Anthony Liguori wrote: > >>>> @@ -324,26 +324,26 @@ ssize_t strtosz_suffix(const char *nptr, char >>>> **end, const char default_suffix) >>>> } >>>> } >>>> switch (toupper(d)) { >>>> >> BTW, a useful change would be to accept both upper and lower case letters. >> > And it does, via the toupper() added earlier in the series (and which > has separately been pointed out that using qemu_toupper() might be nicer). > Ok. Just taking the different case labels would be nicer IMHO. Regards, Anthony Liguori