diff --git a/src/libxl/libxl_conf.c b/src/libxl/libxl_conf.c index 1a7e4300cda625548d3acdf0fdb9b1c178f29d25..90d563b0f60106e2bb95d8f9368a9ea5f666cc17 100644 --- a/src/libxl/libxl_conf.c +++ b/src/libxl/libxl_conf.c @@ -244,7 +244,7 @@ libxlMakeCapabilitiesInternal(virArch hostarch, } /* Search for existing matching (model,hvm) tuple */ - for (i = 0 ; i < nr_guest_archs ; i++) { + for (i = 0; i < nr_guest_archs; i++) { if ((guest_archs[i].arch == arch) && guest_archs[i].hvm == hvm) { break; @@ -377,7 +377,7 @@ libxlMakeDomBuildInfo(virDomainDefPtr def, libxl_domain_config *d_config) libxl_defbool_set(&b_info->u.hvm.hpet, 1); } } - for (i = 0 ; i < def->os.nBootDevs ; i++) { + for (i = 0; i < def->os.nBootDevs; i++) { switch (def->os.bootDevs[i]) { case VIR_DOMAIN_BOOT_FLOPPY: bootorder[i] = 'a'; diff --git a/src/libxl/libxl_driver.c b/src/libxl/libxl_driver.c index d268eea42a1668fea820e0c80ab141cc467592dc..7245f97517b8a99952541b130b8255a411874edf 100644 --- a/src/libxl/libxl_driver.c +++ b/src/libxl/libxl_driver.c @@ -3213,7 +3213,7 @@ libxlDomainChangeEjectableMedia(libxlDomainObjPrivatePtr priv, int i; int ret = -1; - for (i = 0 ; i < vm->def->ndisks ; i++) { + for (i = 0; i < vm->def->ndisks; i++) { if (vm->def->disks[i]->bus == disk->bus && STREQ(vm->def->disks[i]->dst, disk->dst)) { origdisk = vm->def->disks[i];