englebass pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=0e5e0ec2189600157f6966afd40f3132d23f6c3a

commit 0e5e0ec2189600157f6966afd40f3132d23f6c3a
Author: Sebastian Dransfeld <s...@tango.flipp.net>
Date:   Sat Dec 7 21:33:16 2013 +0100

    reduce indent level
---
 src/bin/e_ipc.c | 21 ++++++++++-----------
 1 file changed, 10 insertions(+), 11 deletions(-)

diff --git a/src/bin/e_ipc.c b/src/bin/e_ipc.c
index e2853ce..893a863 100644
--- a/src/bin/e_ipc.c
+++ b/src/bin/e_ipc.c
@@ -82,18 +82,17 @@ e_ipc_init(void)
                  base, user, id1);
         if (mkdir(buf, S_IRWXU) < 0)
           goto retry;
-        if (stat(buf, &st) == 0)
+        if (stat(buf, &st) < 0)
+          goto retry;
+        if ((st.st_uid == getuid()) &&
+            ((st.st_mode & (S_IFDIR | S_IRWXU | S_IRWXG | S_IRWXO)) ==
+             (S_IRWXU | S_IFDIR)))
           {
-             if ((st.st_uid == getuid()) &&
-                 ((st.st_mode & (S_IFDIR | S_IRWXU | S_IRWXG | S_IRWXO)) ==
-                  (S_IRWXU | S_IFDIR)))
-               {
-                  snprintf(buf3, sizeof(buf3), "%s/%s-%i",
-                           buf, disp, pid);
-                  _e_ipc_server = ecore_ipc_server_add
-                      (ECORE_IPC_LOCAL_SYSTEM, buf3, 0, NULL);
-                  if (_e_ipc_server) break;
-               }
+             snprintf(buf3, sizeof(buf3), "%s/%s-%i",
+                      buf, disp, pid);
+             _e_ipc_server = ecore_ipc_server_add
+                (ECORE_IPC_LOCAL_SYSTEM, buf3, 0, NULL);
+             if (_e_ipc_server) break;
           }
 retry:
         id1 = rand();

-- 


Reply via email to