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:
Daniel P. Berrange
2012-03-29 10:52:04 +01:00
parent 57351139a7
commit ec8cae93db
56 changed files with 213 additions and 203 deletions

View File

@@ -1441,7 +1441,7 @@ int main(int argc, char **argv) {
if ((statuswrite = daemonForkIntoBackground(argv[0])) < 0) {
VIR_ERROR(_("Failed to fork as daemon: %s"),
virStrerror(errno, ebuf, sizeof ebuf));
virStrerror(errno, ebuf, sizeof(ebuf)));
goto cleanup;
}
}