diff options
author | Daniel P. Berrange <berrange@redhat.com> | 2012-03-29 10:52:04 +0100 |
---|---|---|
committer | Daniel P. Berrange <berrange@redhat.com> | 2012-03-30 11:47:24 +0100 |
commit | ec8cae93db0fe96bf3d12b077415c16a917d7ab9 (patch) | |
tree | 0edb3f714723f17cca883a645682ac1787959a8d /src/node_device/node_device_udev.c | |
parent | Disable build of commandhelper & ssh on Win32 (diff) | |
download | libvirt-ec8cae93db0fe96bf3d12b077415c16a917d7ab9.tar.gz libvirt-ec8cae93db0fe96bf3d12b077415c16a917d7ab9.tar.bz2 libvirt-ec8cae93db0fe96bf3d12b077415c16a917d7ab9.zip |
Consistent style for usage of sizeof operator
The code is splattered with a mix of
sizeof foo
sizeof (foo)
sizeof(foo)
Standardize on sizeof(foo) and add a syntax check rule to
enforce it
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Diffstat (limited to 'src/node_device/node_device_udev.c')
-rw-r--r-- | src/node_device/node_device_udev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node_device/node_device_udev.c b/src/node_device/node_device_udev.c index 9112c9675..438c2ebbf 100644 --- a/src/node_device/node_device_udev.c +++ b/src/node_device/node_device_udev.c @@ -1623,7 +1623,7 @@ static int udevDeviceMonitorStartup(int privileged) if (errno != ENOENT && (privileged || errno != EACCES)) { char ebuf[256]; VIR_ERROR(_("Failed to initialize libpciaccess: %s"), - virStrerror(pciret, ebuf, sizeof ebuf)); + virStrerror(pciret, ebuf, sizeof(ebuf))); ret = -1; goto out; } |