1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2024-12-22 17:34:18 +03:00

maint: fix comma style issues: remaining code

Most of our code base uses space after comma but not before;
fix the remaining uses before adding a syntax check.

* src/network/bridge_driver.c: Consistently use commas.
* src/node_device/node_device_hal.c: Likewise.
* src/node_device/node_device_udev.c: Likewise.
* src/storage/storage_backend_rbd.c: Likewise.

Signed-off-by: Eric Blake <eblake@redhat.com>
This commit is contained in:
Eric Blake 2013-11-19 16:08:26 -07:00
parent 64b2335c2a
commit e44a9a70d3
4 changed files with 5 additions and 5 deletions

View File

@ -1700,7 +1700,7 @@ networkAddRouteToBridge(virNetworkObjPtr network,
/* this creates an all-0 address of the appropriate family */ /* this creates an all-0 address of the appropriate family */
ignore_value(virSocketAddrParse(&zero, ignore_value(virSocketAddrParse(&zero,
(VIR_SOCKET_ADDR_IS_FAMILY(addr,AF_INET) (VIR_SOCKET_ADDR_IS_FAMILY(addr, AF_INET)
? "0.0.0.0" : "::"), ? "0.0.0.0" : "::"),
VIR_SOCKET_ADDR_FAMILY(addr))); VIR_SOCKET_ADDR_FAMILY(addr)));

View File

@ -570,7 +570,7 @@ device_removed(LibHalContext *ctx ATTRIBUTE_UNUSED,
virNodeDeviceObjPtr dev; virNodeDeviceObjPtr dev;
nodeDeviceLock(driverState); nodeDeviceLock(driverState);
dev = virNodeDeviceFindByName(&driverState->devs,name); dev = virNodeDeviceFindByName(&driverState->devs, name);
VIR_DEBUG("%s", name); VIR_DEBUG("%s", name);
if (dev) if (dev)
virNodeDeviceObjRemove(&driverState->devs, dev); virNodeDeviceObjRemove(&driverState->devs, dev);
@ -588,7 +588,7 @@ device_cap_added(LibHalContext *ctx,
virNodeDeviceObjPtr dev; virNodeDeviceObjPtr dev;
nodeDeviceLock(driverState); nodeDeviceLock(driverState);
dev = virNodeDeviceFindByName(&driverState->devs,name); dev = virNodeDeviceFindByName(&driverState->devs, name);
nodeDeviceUnlock(driverState); nodeDeviceUnlock(driverState);
VIR_DEBUG("%s %s", cap, name); VIR_DEBUG("%s %s", cap, name);
if (dev) { if (dev) {

View File

@ -357,7 +357,7 @@ typedef void (*udevLogFunctionPtr)(struct udev *udev,
va_list args); va_list args);
static void static void
ATTRIBUTE_FMT_PRINTF(6,0) ATTRIBUTE_FMT_PRINTF(6, 0)
udevLogFunction(struct udev *udev ATTRIBUTE_UNUSED, udevLogFunction(struct udev *udev ATTRIBUTE_UNUSED,
int priority, int priority,
const char *file, const char *file,

View File

@ -454,7 +454,7 @@ static int virStorageBackendRBDCreateVol(virConnectPtr conn,
} }
if (rados_ioctx_create(ptr.cluster, if (rados_ioctx_create(ptr.cluster,
pool->def->source.name,&ptr.ioctx) < 0) { pool->def->source.name, &ptr.ioctx) < 0) {
virReportError(VIR_ERR_INTERNAL_ERROR, virReportError(VIR_ERR_INTERNAL_ERROR,
_("failed to create the RBD IoCTX. Does the pool '%s' exist?"), _("failed to create the RBD IoCTX. Does the pool '%s' exist?"),
pool->def->source.name); pool->def->source.name);