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>
}
-static int
+static void
virDomainCapsEnumFormat(virBuffer *buf,
const virDomainCapsEnum *capsEnum,
const char *capsEnumName,
size_t i;
if (!capsEnum->report)
- return 0;
+ return;
virBufferAsprintf(&attrBuf, " name='%s'", capsEnumName);
}
virXMLFormatElement(buf, "enum", &attrBuf, &childBuf);
- return 0;
}