Commit aa641107 authored by Michal Privoznik's avatar Michal Privoznik

libvirt-php.c: s/asnprintf/asprintf/

Signed-off-by: 's avatarMichal Privoznik <mprivozn@redhat.com>
parent e20f3069
......@@ -5369,7 +5369,7 @@ PHP_FUNCTION(libvirt_domain_disk_add)
goto error;
}
if (asnprintf(&newXml,
if (asprintf(&newXml,
" <disk type='file' device='disk'>\n"
" <driver name='qemu' type='%s'/>\n"
" <source file='%s'/>\n"
......@@ -5442,12 +5442,12 @@ PHP_FUNCTION(libvirt_domain_disk_remove)
}
tmp = get_string_from_xpath(xml, xpath, NULL, &retval);
if (!tmp) {
asnprintf(&tmp, "Device <i>%s</i> is not connected to the guest", dev);
asprintf(&tmp, "Device <i>%s</i> is not connected to the guest", dev);
set_error(tmp TSRMLS_CC);
goto error;
}
if (asnprintf(&newXml,
if (asprintf(&newXml,
" <disk type='file' device='disk'>\n"
" <target dev='%s'/>\n"
" </disk>", dev) < 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment