Received: from eggs.gnu.org ([2001:4830:134:3::10]:50156) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZwXTY-0000dc-SF for qemu-devel@nongnu.org; Wed, 11 Nov 2015 10:38:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZwXTV-00075l-28 for qemu-devel@nongnu.org; Wed, 11 Nov 2015 10:38:20 -0500 From: Alberto Garcia In-Reply-To: <56435F9A.6010302@redhat.com> References: <1447247832-14198-1-git-send-email-berto@igalia.com> <56435F9A.6010302@redhat.com> Date: Wed, 11 Nov 2015 16:38:15 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [Qemu-devel] [PATCH for-2.5] block: make 'stats-intervals' a list of integers List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake , qemu-devel@nongnu.org Cc: Kevin Wolf , Max Reitz , Stefan Hajnoczi , qemu-block@nongnu.org, Markus Armbruster On Wed 11 Nov 2015 04:32:42 PM CET, Eric Blake wrote: >> - for (i = 0; !error && intervals[i] != NULL; i++) { >> + case QTYPE_QSTRING: { > >> + case QTYPE_QINT: { > > Why are we accepting both string and int here, but typing it as 'int' in > qapi? I guess its due to how command line parsing passes in strings > rather than ints? Yes. Berto