[PATCH] daemon: fix indention problem in daemon/libvirt.c

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

 



* daemon/libvirtd.c
---
 daemon/libvirtd.c |   40 ++++++++++++++++++++--------------------
 1 files changed, 20 insertions(+), 20 deletions(-)

diff --git a/daemon/libvirtd.c b/daemon/libvirtd.c
index ab2b579..9446638 100644
--- a/daemon/libvirtd.c
+++ b/daemon/libvirtd.c
@@ -1077,33 +1077,33 @@ static int qemudNetworkEnable(struct qemud_server *server) {
 static gnutls_session_t
 remoteInitializeTLSSession (void)
 {
-  gnutls_session_t session;
-  int err;
+    gnutls_session_t session;
+    int err;
 
-  err = gnutls_init (&session, GNUTLS_SERVER);
-  if (err != 0) goto failed;
+    err = gnutls_init (&session, GNUTLS_SERVER);
+    if (err != 0) goto failed;
 
-  /* avoid calling all the priority functions, since the defaults
-   * are adequate.
-   */
-  err = gnutls_set_default_priority (session);
-  if (err != 0) goto failed;
+    /* avoid calling all the priority functions, since the defaults
+     * are adequate.
+     */
+    err = gnutls_set_default_priority (session);
+    if (err != 0) goto failed;
 
-  err = gnutls_credentials_set (session, GNUTLS_CRD_CERTIFICATE, x509_cred);
-  if (err != 0) goto failed;
+    err = gnutls_credentials_set (session, GNUTLS_CRD_CERTIFICATE, x509_cred);
+    if (err != 0) goto failed;
 
-  /* request client certificate if any.
-   */
-  gnutls_certificate_server_set_request (session, GNUTLS_CERT_REQUEST);
+    /* request client certificate if any.
+     */
+    gnutls_certificate_server_set_request (session, GNUTLS_CERT_REQUEST);
 
-  gnutls_dh_set_prime_bits (session, DH_BITS);
+    gnutls_dh_set_prime_bits (session, DH_BITS);
 
-  return session;
+    return session;
 
- failed:
-  VIR_ERROR(_("remoteInitializeTLSSession: %s"),
-            gnutls_strerror (err));
-  return NULL;
+failed:
+    VIR_ERROR(_("remoteInitializeTLSSession: %s"),
+              gnutls_strerror (err));
+    return NULL;
 }
 
 /* Check DN is on tls_allowed_dn_list. */
-- 
1.7.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]