aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Blake <eblake@redhat.com>2012-03-29 21:17:30 -0600
committerEric Blake <eblake@redhat.com>2012-03-29 21:23:59 -0600
commite8aa5a16c9a9827a2ba395088f76124a0a62d3ea (patch)
tree17eaebb1612a0af2cabc0838c108a944c8732694 /tests/lxcxml2xmltest.c
parentbuild: avoid 'devname' for BSD (diff)
downloadlibvirt-e8aa5a16c9a9827a2ba395088f76124a0a62d3ea.tar.gz
libvirt-e8aa5a16c9a9827a2ba395088f76124a0a62d3ea.tar.bz2
libvirt-e8aa5a16c9a9827a2ba395088f76124a0a62d3ea.zip
build: silence recent syntax check violations
An upstream gnulib bug[1] meant that some of our syntax checks weren't being run. Fix up our offenders before we upgrade to a newer gnulib. [1] https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00194.html * src/util/virnetdevtap.c (virNetDevTapCreate): Use flags. * tests/lxcxml2xmltest.c (mymain): Strip useless ().
Diffstat (limited to 'tests/lxcxml2xmltest.c')
-rw-r--r--tests/lxcxml2xmltest.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/lxcxml2xmltest.c b/tests/lxcxml2xmltest.c
index 558bd012c..6a879393d 100644
--- a/tests/lxcxml2xmltest.c
+++ b/tests/lxcxml2xmltest.c
@@ -99,7 +99,7 @@ mymain(void)
int ret = 0;
if ((caps = testLXCCapsInit()) == NULL)
- return (EXIT_FAILURE);
+ return EXIT_FAILURE;
# define DO_TEST_FULL(name, is_different, inactive) \
do { \
@@ -124,7 +124,7 @@ mymain(void)
virCapabilitiesFree(caps);
- return (ret==0 ? EXIT_SUCCESS : EXIT_FAILURE);
+ return ret==0 ? EXIT_SUCCESS : EXIT_FAILURE;
}
VIRT_TEST_MAIN(mymain)