mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-27 19:11:16 +00:00
virDomainCapsEnumFormat: Retrun void
The virDomainCapsEnumFormat() function does not return anything but zero and none of its callers is interested in the failure anyways. Switch its return type from integer to void. Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
parent
a7789d9324
commit
179e45d237
@ -263,7 +263,7 @@ virDomainCapsEnumClear(virDomainCapsEnum *capsEnum)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static int
|
static void
|
||||||
virDomainCapsEnumFormat(virBuffer *buf,
|
virDomainCapsEnumFormat(virBuffer *buf,
|
||||||
const virDomainCapsEnum *capsEnum,
|
const virDomainCapsEnum *capsEnum,
|
||||||
const char *capsEnumName,
|
const char *capsEnumName,
|
||||||
@ -274,7 +274,7 @@ virDomainCapsEnumFormat(virBuffer *buf,
|
|||||||
size_t i;
|
size_t i;
|
||||||
|
|
||||||
if (!capsEnum->report)
|
if (!capsEnum->report)
|
||||||
return 0;
|
return;
|
||||||
|
|
||||||
virBufferAsprintf(&attrBuf, " name='%s'", capsEnumName);
|
virBufferAsprintf(&attrBuf, " name='%s'", capsEnumName);
|
||||||
|
|
||||||
@ -289,7 +289,6 @@ virDomainCapsEnumFormat(virBuffer *buf,
|
|||||||
}
|
}
|
||||||
|
|
||||||
virXMLFormatElement(buf, "enum", &attrBuf, &childBuf);
|
virXMLFormatElement(buf, "enum", &attrBuf, &childBuf);
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user