]> xenbits.xensource.com Git - libvirt.git/commit
util: use glib string allocation/formatting functions
authorDaniel P. Berrangé <berrange@redhat.com>
Fri, 6 Sep 2019 12:10:24 +0000 (13:10 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Mon, 14 Oct 2019 09:54:42 +0000 (10:54 +0100)
commitbb9a1a14e251949476b0e4ba0f4f75ac2fbae344
treea80198828042885a3bc85032c4a77b03af6909f0
parente85e34f3af7eec4cf1e2b326d77c3369cfb02e9d
util: use glib string allocation/formatting functions

Convert the string duplication APIs to use the g_strdup family of APIs.

We previously used the 'strdup-posix' gnulib module because mingw does
not set errno to ENOMEM on failure

We previously used the 'strndup' gnulib module because this function
does not exist on mingw.

We previously used the 'vasprintf' gnulib module because of many GNU
supported format specifiers not working on non-Linux platforms. glib's
own equivalent standardizes on GNU format specifiers too.

Reviewed-by: Ján Tomko <jtomko@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
bootstrap.conf
docs/hacking.html.in
src/util/virstring.c
src/util/virstring.h