[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 1/5] Convert calls to g_malloc() using casts to
From: |
Stuart Brady |
Subject: |
Re: [Qemu-devel] [PATCH 1/5] Convert calls to g_malloc() using casts to g_new() |
Date: |
Fri, 21 Oct 2011 01:34:42 +0100 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
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
- [Qemu-devel] [PATCH 5/5] Convert remaining calls to g_malloc(sizeof(type)) to g_new(), (continued)
[Qemu-devel] [PATCH 4/5] Convert remaining calls to g_malloc(sizeof(type)) using casts to g_new(), Stuart Brady, 2011/10/20
[Qemu-devel] [PATCH 2/5] Convert use of ptr = g_malloc(sizeof(*ptr)) to g_new(), Stuart Brady, 2011/10/20
[Qemu-devel] [PATCH 3/5] Convert use of ptr = g_malloc(sizeof(type)) to g_new(), Stuart Brady, 2011/10/20
Re: [Qemu-devel] [PATCH 1/5] Convert calls to g_malloc() using casts to g_new(), Paolo Bonzini, 2011/10/20
- Re: [Qemu-devel] [PATCH 1/5] Convert calls to g_malloc() using casts to g_new(),
Stuart Brady <=