Re: [PATCH 04/11] util: use glib memory allocation functions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Sep 27, 2019 at 06:17:26PM +0100, Daniel P. Berrangé wrote:
> Convert the VIR_ALLOC family of APIs with use of the g_malloc family of
> APIs. Use of VIR_ALLOC related functions should be incrementally phased
> out over time, allowing return value checks to be dropped. Use of
> VIR_FREE should be replaced with auto-cleanup whenever possible.
> 
> We previously used the 'calloc-posix' gnulib module because mingw does
> not set errno to ENOMEM on failure.
> 
> Signed-off-by: Daniel P. Berrangé <berrange@xxxxxxxxxx>
> ---
>  bootstrap.conf      |  1 -
>  src/util/viralloc.c | 29 ++++++-----------------------
>  2 files changed, 6 insertions(+), 24 deletions(-)

\o/ Another gnulib module removed.  On Friday I was trying to figure out
how to incorporate gnulib into meson build system and it's not easy at
all and still I did not verify that it actually works so we might need
to get rid of gnulib before we can do that conversion.

Reviewed-by: Pavel Hrdina <phrdina@xxxxxxxxxx>

Attachment: signature.asc
Description: PGP signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux