From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50326) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a0s5S-0008K0-Vy for qemu-devel@nongnu.org; Mon, 23 Nov 2015 09:27:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a0s5O-0005aa-Uu for qemu-devel@nongnu.org; Mon, 23 Nov 2015 09:27:22 -0500 Received: from mx1.redhat.com ([209.132.183.28]:52706) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a0s5O-0005aW-Pa for qemu-devel@nongnu.org; Mon, 23 Nov 2015 09:27:18 -0500 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (Postfix) with ESMTPS id 882B3811D9 for ; Mon, 23 Nov 2015 14:27:18 +0000 (UTC) References: <1447946948-12489-1-git-send-email-armbru@redhat.com> <1447946948-12489-5-git-send-email-armbru@redhat.com> <564E46AD.4030901@redhat.com> <87egflqjty.fsf@blackfin.pond.sub.org> <564EDEE3.80000@redhat.com> <564F592D.4080305@redhat.com> From: Paolo Bonzini Message-ID: <56532242.9040508@redhat.com> Date: Mon, 23 Nov 2015 15:27:14 +0100 MIME-Version: 1.0 In-Reply-To: <564F592D.4080305@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v2 4/4] json-streamer: Limit number of tokens in addition to total size List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake , Markus Armbruster Cc: qemu-devel@nongnu.org, lcapitulino@redhat.com On 20/11/2015 18:32, Eric Blake wrote: > > static void qlist_size_iter(QObject *obj, void *opaque) > > { > > size_t *count = opaque; > > (*count)++; > > } > > Yuck - we don't track size independently? Seems like it might make a > worthwhile addition, Would you change your mind, if I told you that qlist_size is unused? :) Paolo