From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:39901) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QlKTo-0006qh-HU for qemu-devel@nongnu.org; Mon, 25 Jul 2011 08:41:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QlKTn-0001wv-8x for qemu-devel@nongnu.org; Mon, 25 Jul 2011 08:41:52 -0400 Received: from mx1.redhat.com ([209.132.183.28]:52691) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QlKTm-0001wq-Vz for qemu-devel@nongnu.org; Mon, 25 Jul 2011 08:41:51 -0400 Message-ID: <4E2D648A.6080305@redhat.com> Date: Mon, 25 Jul 2011 15:41:46 +0300 From: Avi Kivity MIME-Version: 1.0 References: <1311583872-362-1-git-send-email-avi@redhat.com> <4E2D5D7C.40208@codemonkey.ws> <4E2D5F0D.2040303@redhat.com> <4E2D5FB3.7000906@codemonkey.ws> In-Reply-To: <4E2D5FB3.7000906@codemonkey.ws> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] Introduce QEMU_NEW() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: qemu-devel@nongnu.org, kvm@vger.kernel.org On 07/25/2011 03:21 PM, Anthony Liguori wrote: > On 07/25/2011 07:18 AM, Avi Kivity wrote: >> On 07/25/2011 03:11 PM, Anthony Liguori wrote: >>> On 07/25/2011 03:51 AM, Avi Kivity wrote: >>>> qemu_malloc() is type-unsafe as it returns a void pointer. Introduce >>>> QEMU_NEW() (and QEMU_NEWZ()), which return the correct type. >>> >>> Just use g_new() and g_new0() >>> >> >> These bypass qemu_malloc(). Are we okay with that? > > Yes. We can just make qemu_malloc use g_malloc. > Excellent. Patch withdrawn. -- error compiling committee.c: too many arguments to function