Signed-off-by: Martin Kletzander <mkletzan@xxxxxxxxxx> --- src/xenapi/xenapi_driver.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xenapi/xenapi_driver.c b/src/xenapi/xenapi_driver.c index 42b305d3169c..3eb1428ba197 100644 --- a/src/xenapi/xenapi_driver.c +++ b/src/xenapi/xenapi_driver.c @@ -1490,7 +1490,7 @@ xenapiDomainGetXMLDesc(virDomainPtr dom, unsigned int flags) memory = xenapiDomainGetMaxMemory(dom); virDomainDefSetMemoryTotal(defPtr, memory); if (xen_vm_get_memory_dynamic_max(session, &dynamic_mem, vm)) { - defPtr->mem.cur_balloon = (unsigned long) (dynamic_mem / 1024); + defPtr->mem.cur_balloon = (unsigned long)(dynamic_mem / 1024); } else { defPtr->mem.cur_balloon = memory; } @@ -2101,7 +2101,7 @@ write_func(void *ptr, size_t size, size_t nmemb, void *comms_) printf("%s\n", (char*) ptr); fflush(stdout); #endif - return (size_t) (comms->func(ptr, n, comms->handle) ? n : 0); + return (size_t)(comms->func(ptr, n, comms->handle) ? n : 0); } /* -- 2.17.0 -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list