--- examples/domain-events/events-c/event-test.c | 2 +- examples/openauth/openauth.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/domain-events/events-c/event-test.c b/examples/domain-events/events-c/event-test.c index 301caad..eeff50f 100644 --- a/examples/domain-events/events-c/event-test.c +++ b/examples/domain-events/events-c/event-test.c @@ -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); diff --git a/examples/openauth/openauth.c b/examples/openauth/openauth.c index 4f01cdb..628451c 100644 --- a/examples/openauth/openauth.c +++ b/examples/openauth/openauth.c @@ -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); -- 1.8.1.4 -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list