mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
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>
This commit is contained in:
@@ -80,8 +80,6 @@ snprintf
|
||||
socket
|
||||
stat-time
|
||||
strchrnul
|
||||
strdup-posix
|
||||
strndup
|
||||
strerror
|
||||
strerror_r-posix
|
||||
strptime
|
||||
@@ -96,7 +94,6 @@ ttyname_r
|
||||
uname
|
||||
unsetenv
|
||||
usleep
|
||||
vasprintf
|
||||
verify
|
||||
vsnprintf
|
||||
waitpid
|
||||
|
||||
Reference in New Issue
Block a user