mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 20:45:18 +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,
|
||||
const virDomainCapsEnum *capsEnum,
|
||||
const char *capsEnumName,
|
||||
@ -274,7 +274,7 @@ virDomainCapsEnumFormat(virBuffer *buf,
|
||||
size_t i;
|
||||
|
||||
if (!capsEnum->report)
|
||||
return 0;
|
||||
return;
|
||||
|
||||
virBufferAsprintf(&attrBuf, " name='%s'", capsEnumName);
|
||||
|
||||
@ -289,7 +289,6 @@ virDomainCapsEnumFormat(virBuffer *buf,
|
||||
}
|
||||
|
||||
virXMLFormatElement(buf, "enum", &attrBuf, &childBuf);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user