aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel P. Berrange <berrange@redhat.com>2012-03-29 10:52:04 +0100
committerDaniel P. Berrange <berrange@redhat.com>2012-03-30 11:47:24 +0100
commitec8cae93db0fe96bf3d12b077415c16a917d7ab9 (patch)
tree0edb3f714723f17cca883a645682ac1787959a8d /examples
parentDisable build of commandhelper & ssh on Win32 (diff)
downloadlibvirt-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 'examples')
-rw-r--r--examples/domain-events/events-c/event-test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/domain-events/events-c/event-test.c b/examples/domain-events/events-c/event-test.c
index 5a6ef1d41..c54778f7d 100644
--- a/examples/domain-events/events-c/event-test.c
+++ b/examples/domain-events/events-c/event-test.c
@@ -393,7 +393,7 @@ int main(int argc, char **argv)
int callback12ret = -1;
struct sigaction action_stop;
- memset(&action_stop, 0, sizeof action_stop);
+ memset(&action_stop, 0, sizeof(action_stop));
action_stop.sa_handler = stop;