]> xenbits.xensource.com Git - libvirt.git/commitdiff
examples: Remove the whitespace before ';'
authorOsier Yang <jyang@redhat.com>
Tue, 21 May 2013 08:04:26 +0000 (16:04 +0800)
committerOsier Yang <jyang@redhat.com>
Tue, 21 May 2013 15:41:45 +0000 (23:41 +0800)
examples/domain-events/events-c/event-test.c
examples/openauth/openauth.c

index 301caad2bd4893c89ac317acd64803f75825eed7..eeff50fd4c361e2a16a16cc18ffdc02e05b328d5 100644 (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);
index 4f01cdb0cc97c10234a97fbbf563c612bad34f55..628451cdb4c27e691ee568a3758ac934947b8371 100644 (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);