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

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



* 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


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