From: Antoine Naud Date: Thu, 22 Mar 2018 09:48:09 +0000 (+0000) Subject: src/virt_test.c: Fix build error on ubuntu:trusty X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=1c3f49f2b79d90444615d516420ae1bc506472c9;p=collectd.git src/virt_test.c: Fix build error on ubuntu:trusty Change-Id: Ie7dce42f52709c95e1cc51c2236276755278a0ec Signed-off-by: Antoine Naud --- diff --git a/src/virt_test.c b/src/virt_test.c index b21ac306..4c9ee1fc 100644 --- a/src/virt_test.c +++ b/src/virt_test.c @@ -60,7 +60,7 @@ static int teardown(void) { DEF_TEST(get_domain_state_notify) { if (setup() == 0) { nr_domains = virConnectListAllDomains( - conn, &domains, VIR_CONNECT_GET_ALL_DOMAINS_STATS_PERSISTENT); + conn, &domains, VIR_CONNECT_LIST_DOMAINS_PERSISTENT); if (nr_domains <= 0) { printf("ERROR: virConnectListAllDomains: nr_domains <= 0\n"); return -1;