mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
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 ().
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user