]> xenbits.xensource.com Git - libvirt.git/commitdiff
qemu_hotplug: Fix whitespace around addition in argument
authorPeter Krempa <pkrempa@redhat.com>
Wed, 28 Aug 2013 12:56:21 +0000 (14:56 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 29 Aug 2013 08:41:45 +0000 (10:41 +0200)
src/qemu/qemu_hotplug.c

index a7256f357d31cc98ea37ea658ce07a95bcdbcc6f..9c655fff1cad9c66539a732d8ce7bcfc8765ca60 100644 (file)
@@ -814,7 +814,7 @@ int qemuDomainAttachNetDevice(virConnectPtr conn,
     size_t i;
 
     /* preallocate new slot for device */
-    if (VIR_REALLOC_N(vm->def->nets, vm->def->nnets+1) < 0)
+    if (VIR_REALLOC_N(vm->def->nets, vm->def->nnets + 1) < 0)
         goto cleanup;
 
     /* If appropriate, grab a physical device from the configured
@@ -1136,7 +1136,7 @@ int qemuDomainAttachHostPciDevice(virQEMUDriverPtr driver,
     char *configfd_name = NULL;
     bool releaseaddr = false;
 
-    if (VIR_REALLOC_N(vm->def->hostdevs, vm->def->nhostdevs+1) < 0)
+    if (VIR_REALLOC_N(vm->def->hostdevs, vm->def->nhostdevs + 1) < 0)
         return -1;
 
     if (qemuPrepareHostdevPCIDevices(driver, vm->def->name, vm->def->uuid,