[vte] Reindent code after removing extra block



commit 80ea6ee57d8d80a2876edf626e797e738c8419ad
Author: Christian Persch <chpe gnome org>
Date:   Tue Mar 30 21:33:15 2010 +0200

    Reindent code after removing extra block

 src/pty.c |   46 +++++++++++++++++++++++-----------------------
 1 files changed, 23 insertions(+), 23 deletions(-)
---
diff --git a/src/pty.c b/src/pty.c
index 58f5dcc..1e68f89 100644
--- a/src/pty.c
+++ b/src/pty.c
@@ -1424,31 +1424,31 @@ vte_pty_close (VtePty *pty)
 	gpointer tag;
 	GnomePtyOps ops;
 
-        if (priv->using_helper) {
-			/* Signal the helper that it needs to close its
-			 * connection. */
-			tag = priv->helper_tag;
-
-			ops = GNOME_PTY_CLOSE_PTY;
-			if (n_write(_vte_pty_helper_tunnel,
-				    &ops, sizeof(ops)) != sizeof(ops)) {
-				return;
-			}
-			if (n_write(_vte_pty_helper_tunnel,
-				    &tag, sizeof(tag)) != sizeof(tag)) {
-				return;
-			}
+        if (!priv->using_helper)
+                return;
 
-			ops = GNOME_PTY_SYNCH;
-			if (n_write(_vte_pty_helper_tunnel,
-				    &ops, sizeof(ops)) != sizeof(ops)) {
-				return;
-			}
-			n_read(_vte_pty_helper_tunnel, &ops, 1);
+        /* Signal the helper that it needs to close its connection. */
+        tag = priv->helper_tag;
 
-                        priv->helper_tag = NULL;
-                        priv->using_helper = FALSE;
-	}
+        ops = GNOME_PTY_CLOSE_PTY;
+        if (n_write(_vte_pty_helper_tunnel,
+                    &ops, sizeof(ops)) != sizeof(ops)) {
+                return;
+        }
+        if (n_write(_vte_pty_helper_tunnel,
+                    &tag, sizeof(tag)) != sizeof(tag)) {
+                return;
+        }
+
+        ops = GNOME_PTY_SYNCH;
+        if (n_write(_vte_pty_helper_tunnel,
+                    &ops, sizeof(ops)) != sizeof(ops)) {
+                return;
+        }
+        n_read(_vte_pty_helper_tunnel, &ops, 1);
+
+        priv->helper_tag = NULL;
+        priv->using_helper = FALSE;
 #endif
 }
 



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