Prefer GLib's g_strdup to vshStrdup. Signed-off-by: Ján Tomko <jtomko@xxxxxxxxxx> --- tools/virsh-domain.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/virsh-domain.c b/tools/virsh-domain.c index 3ba8451470..715ad51ef5 100644 --- a/tools/virsh-domain.c +++ b/tools/virsh-domain.c @@ -8523,7 +8523,7 @@ static const vshCmdOptDef opts_metadata[] = { /* helper to add new metadata using the --edit option */ static char * -virshDomainGetEditMetadata(vshControl *ctl, +virshDomainGetEditMetadata(vshControl *ctl G_GNUC_UNUSED, virDomainPtr dom, const char *uri, unsigned int flags) @@ -8533,7 +8533,7 @@ virshDomainGetEditMetadata(vshControl *ctl, if (!(ret = virDomainGetMetadata(dom, VIR_DOMAIN_METADATA_ELEMENT, uri, flags))) { vshResetLibvirtError(); - ret = vshStrdup(ctl, "\n"); + ret = g_strdup("\n"); } return ret; -- 2.21.0 -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list