]> git.ipfire.org Git - thirdparty/libvirt.git/commit
event-test: Use goto cleanup instead of if else jungle
authorMichal Privoznik <mprivozn@redhat.com>
Wed, 16 Mar 2016 08:55:47 +0000 (09:55 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 24 Mar 2016 09:49:39 +0000 (10:49 +0100)
commitbde75a895d5b8fbdda4c93411fcc820d6498dfb5
treef6a9aaccd30bcb274e58ba20e89d0901eef80ab8
parent950a90d489b2a79fe641a95194c56112b2682d9c
event-test: Use goto cleanup instead of if else jungle

Like in the rest of our code we tend to prefer 'goto' and
'cleanup' over 'if else' code structure. Do the same here.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
examples/object-events/event-test.c