[PATCH 02/24] Indent top-level labels by one space in examples/

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 examples/dominfo/info1.c             |  2 +-
 examples/domsuspend/suspend.c        |  8 ++++----
 examples/hellolibvirt/hellolibvirt.c |  8 ++++----
 examples/openauth/openauth.c         | 10 +++++-----
 4 files changed, 14 insertions(+), 14 deletions(-)

diff --git a/examples/dominfo/info1.c b/examples/dominfo/info1.c
index 13c45ec..cd7ecd1 100644
--- a/examples/dominfo/info1.c
+++ b/examples/dominfo/info1.c
@@ -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)
diff --git a/examples/domsuspend/suspend.c b/examples/domsuspend/suspend.c
index f61a5d1..b1c49ec 100644
--- a/examples/domsuspend/suspend.c
+++ b/examples/domsuspend/suspend.c
@@ -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);
diff --git a/examples/hellolibvirt/hellolibvirt.c b/examples/hellolibvirt/hellolibvirt.c
index 0179fad..c64fa96 100644
--- a/examples/hellolibvirt/hellolibvirt.c
+++ b/examples/hellolibvirt/hellolibvirt.c
@@ -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;
 }
diff --git a/examples/openauth/openauth.c b/examples/openauth/openauth.c
index e7058fe..fae96e0 100644
--- a/examples/openauth/openauth.c
+++ b/examples/openauth/openauth.c
@@ -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;
 }
-- 
1.8.3.2

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]