]> git.ipfire.org Git - thirdparty/libvirt.git/commit
eventtest.c: detect write failure and avoid dead stores
authorJim Meyering <meyering@redhat.com>
Thu, 3 Sep 2009 16:25:03 +0000 (18:25 +0200)
committerJim Meyering <meyering@redhat.com>
Fri, 4 Sep 2009 16:59:29 +0000 (18:59 +0200)
commit25b20b710313f97d8255896b5aa143ae49538ec2
tree61ceca117b46cc21a4253efbb1617ee5ef8270b4
parent198bd0516a982b1effc4757371dc9cff5c2c424c
eventtest.c: detect write failure and avoid dead stores

* tests/eventtest.c (mymain): Exit nonzero upon write failure.
This also avoids several dead stores of the form ret = safewrite...
tests/eventtest.c