mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
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>
This commit is contained in:
@@ -652,7 +652,7 @@ storagePoolUndefine(virStoragePoolPtr obj) {
|
||||
if (unlink(pool->autostartLink) < 0 && errno != ENOENT && errno != ENOTDIR) {
|
||||
char ebuf[1024];
|
||||
VIR_ERROR(_("Failed to delete autostart link '%s': %s"),
|
||||
pool->autostartLink, virStrerror(errno, ebuf, sizeof ebuf));
|
||||
pool->autostartLink, virStrerror(errno, ebuf, sizeof(ebuf)));
|
||||
}
|
||||
|
||||
VIR_FREE(pool->configFile);
|
||||
|
||||
Reference in New Issue
Block a user