[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-trivial] [PATCH v7] slirp/misc: Use g_malloc() instead of mall
From: |
Michael Tokarev |
Subject: |
Re: [Qemu-trivial] [PATCH v7] slirp/misc: Use g_malloc() instead of malloc() |
Date: |
Tue, 19 Aug 2014 11:32:55 +0400 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Icedove/24.7.0 |
19.08.2014 11:30, zhanghailiang wrote:
[]
> Hmm, it is a good idea to use g_new instead of g_malloc,
> we have to perform type cast for g_malloc.(BTW, i found in qemu there
> are several places use g_malloc but not perform appropriate type
> coercions)
There's no need to perform explicit type conversion from void* to type*.
Thanks,
/mjt