- int n_domains = virConnectListAllDomains(
- conn, &domains, VIR_CONNECT_GET_ALL_DOMAINS_STATS_PERSISTENT);
- if (n_domains <= 0) {
- printf("ERROR: virConnectListAllDomains: n_domains <= 0\n");
+ nr_domains = virConnectListAllDomains(conn, &domains,
+ VIR_CONNECT_LIST_DOMAINS_PERSISTENT);
+ if (nr_domains <= 0) {
+ printf("ERROR: virConnectListAllDomains: nr_domains <= 0\n");