]> git.ipfire.org Git - thirdparty/libvirt.git/commit
xen_common: Change xenConfigGetString to use virConfGetValueString
authorFabiano FidĂȘncio <fidencio@redhat.com>
Thu, 20 Sep 2018 13:28:49 +0000 (15:28 +0200)
committerJohn Ferlan <jferlan@redhat.com>
Thu, 20 Sep 2018 20:39:01 +0000 (16:39 -0400)
commitb98d936c1967e11b370687b7ec59ff6172b81093
tree11453fdb05b8ef26b9dc94ada75e4afed724790c
parent93c6239f212823c9bff304946a85dc01510e9428
xen_common: Change xenConfigGetString to use virConfGetValueString

This change actually changes the behaviour of xenConfigGetString() as
now it returns a newly-allocated string.

Unfortunately, there's not much that can be done in order to avoid that
and all the callers have to be changed in order to avoid leaking the
return value.

Also, as a side-effect of the change above, the function now takes a
"char **" argument instead of a "const char **" one.

Signed-off-by: Fabiano FidĂȘncio <fidencio@redhat.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
src/xenconfig/xen_common.c
src/xenconfig/xen_common.h
src/xenconfig/xen_xl.c
src/xenconfig/xen_xm.c