1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2024-12-22 17:34:18 +03:00

Indent top-level labels by one space in examples/

This commit is contained in:
Ján Tomko 2014-03-25 07:48:10 +01:00
parent 60555fb8ed
commit 56e5a9177e
4 changed files with 14 additions and 14 deletions

View File

@ -49,7 +49,7 @@ getDomainInfo(int id)
printf("Domains %d: %d CPUs\n", id, info.nrVirtCpu);
error:
error:
if (dom != NULL)
virDomainFree(dom);
if (conn != NULL)

View File

@ -130,7 +130,7 @@ parse_argv(int argc, char *argv[],
*dom_name = argv[optind];
ret = 0;
cleanup:
cleanup:
return ret;
}
@ -161,7 +161,7 @@ fetch_domains(virConnectPtr conn)
}
ret = 0;
cleanup:
cleanup:
free(domains);
return ret;
}
@ -216,7 +216,7 @@ suspend_and_resume(virConnectPtr conn,
}
ret = 0;
cleanup:
cleanup:
if (dom)
virDomainFree(dom);
return ret;
@ -257,7 +257,7 @@ main(int argc, char *argv[])
goto cleanup;
ret = EXIT_SUCCESS;
cleanup:
cleanup:
if (conn) {
int tmp;
tmp = virConnectClose(conn);

View File

@ -46,7 +46,7 @@ showHypervisorInfo(virConnectPtr conn)
minor,
release);
out:
out:
return ret;
}
@ -107,7 +107,7 @@ showDomains(virConnectPtr conn)
}
free(nameList);
out:
out:
return ret;
}
@ -155,7 +155,7 @@ main(int argc, char *argv[])
goto disconnect;
}
disconnect:
disconnect:
if (0 != virConnectClose(conn)) {
printf("Failed to disconnect from hypervisor: %s\n",
virGetLastErrorMessage());
@ -164,6 +164,6 @@ disconnect:
printf("Disconnected from hypervisor\n");
}
out:
out:
return ret;
}

View File

@ -40,7 +40,7 @@ showError(virConnectPtr conn)
virResetError(err);
free(err);
out:
out:
return;
}
@ -82,7 +82,7 @@ showHypervisorInfo(virConnectPtr conn)
minor,
release);
out:
out:
return ret;
}
@ -144,7 +144,7 @@ showDomains(virConnectPtr conn)
free(*(nameList + i));
}
out:
out:
free(nameList);
return ret;
}
@ -274,7 +274,7 @@ main(int argc, char *argv[])
goto disconnect;
}
disconnect:
disconnect:
if (virConnectClose(conn) != 0) {
printf("Failed to disconnect from hypervisor\n");
showError(conn);
@ -283,6 +283,6 @@ main(int argc, char *argv[])
printf("Disconnected from hypervisor\n");
}
out:
out:
return ret;
}