Received: from eggs.gnu.org ([140.186.70.92]:46264) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RH34T-0002BM-5u for qemu-devel@nongnu.org; Thu, 20 Oct 2011 20:34:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RH34Q-0002HJ-I1 for qemu-devel@nongnu.org; Thu, 20 Oct 2011 20:34:48 -0400 Received: from auth.b.painless.aaisp.net.uk ([90.155.4.48]:39451) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RH34Q-0002H3-7S for qemu-devel@nongnu.org; Thu, 20 Oct 2011 20:34:46 -0400 Received: from zubnet.me.uk ([81.187.243.246] helo=circe) by b.painless.aaisp.net.uk with esmtp (Exim 4.72) (envelope-from ) id 1RH34O-00005a-Eq for qemu-devel@nongnu.org; Fri, 21 Oct 2011 01:34:44 +0100 Date: Fri, 21 Oct 2011 01:34:42 +0100 From: Stuart Brady Message-ID: <20111021003442.GB6139@zubnet.me.uk> References: <1319097820-4788-1-git-send-email-sdb@zubnet.me.uk> <4E9FE20A.5020000@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4E9FE20A.5020000@redhat.com> Subject: Re: [Qemu-devel] [PATCH 1/5] Convert calls to g_malloc() using casts to g_new() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org On Thu, Oct 20, 2011 at 10:55:38AM +0200, Paolo Bonzini wrote: > On 10/20/2011 10:03 AM, Stuart Brady wrote: > >Convert calls to g_malloc() and g_malloc0() to g_new() and g_new0() > >respectively, in cases where the return value is casted to the same > >type as specified using sizeof() in the parameter to g_malloc() and > >assigned to a variable of that type. > > This is likely to cause conflicts all over the place, and now is a > very bad time to do so :( because people are trying to get their > patches in during the soft feature freeze. I don't oppose the > change, just the timing. That makes sense. Perhaps I should just submit a patch for the allocation of GuestFileRead (which should be GuestFileSeek) in that case -- although since that's benign, I could just wait a little while longer. Cheers, -- Stuart