mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-23 13:05:27 +00:00
virDomainTimerDefFormat: return void
This function never returns an error, make it void then. Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
a1c47cb8fc
commit
b529c51933
@ -26101,7 +26101,7 @@ virDomainInputDefFormat(virBuffer *buf,
|
||||
}
|
||||
|
||||
|
||||
static int
|
||||
static void
|
||||
virDomainTimerDefFormat(virBuffer *buf,
|
||||
virDomainTimerDef *def)
|
||||
{
|
||||
@ -26146,8 +26146,6 @@ virDomainTimerDefFormat(virBuffer *buf,
|
||||
|
||||
virXMLFormatElement(&timerChld, "catchup", &catchupAttr, NULL);
|
||||
virXMLFormatElement(buf, "timer", &timerAttr, &timerChld);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void
|
||||
@ -28192,8 +28190,7 @@ virDomainDefFormatInternalSetRootName(virDomainDef *def,
|
||||
virBufferAddLit(buf, ">\n");
|
||||
virBufferAdjustIndent(buf, 2);
|
||||
for (n = 0; n < def->clock.ntimers; n++) {
|
||||
if (virDomainTimerDefFormat(buf, def->clock.timers[n]) < 0)
|
||||
return -1;
|
||||
virDomainTimerDefFormat(buf, def->clock.timers[n]);
|
||||
}
|
||||
virBufferAdjustIndent(buf, -2);
|
||||
virBufferAddLit(buf, "</clock>\n");
|
||||
|
Loading…
x
Reference in New Issue
Block a user