examples: Remove the whitespace before ';'

This commit is contained in:
Osier Yang 2013-05-21 16:04:26 +08:00
parent 1ea88abd7e
commit 6da965692c
2 changed files with 3 additions and 3 deletions

View File

@ -332,7 +332,7 @@ static int myDomainEventGraphicsCallback(virConnectPtr conn ATTRIBUTE_UNUSED,
remote->family, remote->node, remote->service);
printf("auth: %s ", authScheme);
for (i = 0 ; i < subject->nidentity ; i++) {
for (i = 0; i < subject->nidentity; i++) {
printf(" identity: %s=%s",
subject->identities[i].type,
subject->identities[i].name);

View File

@ -135,7 +135,7 @@ showDomains(virConnectPtr conn)
printf("Inactive domains:\n");
}
for (i = 0 ; i < numNames ; i++) {
for (i = 0; i < numNames; i++) {
printf(" %s\n", *(nameList + i));
/* The API documentation doesn't say so, but the names
* returned by virConnectListDefinedDomains are strdup'd and
@ -175,7 +175,7 @@ authCallback(virConnectCredentialPtr cred, unsigned int ncred, void *cbdata)
* For example the ESX driver passes the hostname of the ESX or vCenter
* server as challenge. This allows a auth callback to return the
* proper credentials. */
for (i = 0; i < ncred ; ++i) {
for (i = 0; i < ncred; ++i) {
switch (cred[i].type) {
case VIR_CRED_AUTHNAME:
cred[i].result = strdup(authData->username);