From: Claudio Bley Date: Tue, 24 Sep 2013 09:57:37 +0000 (+0200) Subject: test: fix call to virFDStreamOpenFile in testDomainScreenshot X-Git-Tag: v1.1.3-rc1~61 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=291edf708b2eb9ca52350b92e5771764a13ba4d1;p=thirdparty%2Flibvirt.git test: fix call to virFDStreamOpenFile in testDomainScreenshot N.B. This had no ill effects as long as O_RDONLY is defined to to be 0, such that the expression (O_RDONLY < 0) yielded 0 again. Signed-off-by: Claudio Bley --- diff --git a/src/test/test_driver.c b/src/test/test_driver.c index 47c9d38cdb..e1197c9d73 100644 --- a/src/test/test_driver.c +++ b/src/test/test_driver.c @@ -5862,7 +5862,7 @@ testDomainScreenshot(virDomainPtr dom ATTRIBUTE_UNUSED, if (VIR_STRDUP(ret, "image/png") < 0) return NULL; - if (virFDStreamOpenFile(st, PKGDATADIR "/libvirtLogo.png", 0, 0, O_RDONLY < 0)) + if (virFDStreamOpenFile(st, PKGDATADIR "/libvirtLogo.png", 0, 0, O_RDONLY) < 0) VIR_FREE(ret); return ret;