Enlightenment CVS committal

Author  : raster
Project : e17
Module  : libs/ecore

Dir     : e17/libs/ecore/src/lib/ecore


Modified Files:
        ecore_exe.c 


Log Message:


formatting

===================================================================
RCS file: /cvs/e/e17/libs/ecore/src/lib/ecore/ecore_exe.c,v
retrieving revision 1.58
retrieving revision 1.59
diff -u -3 -r1.58 -r1.59
--- ecore_exe.c 5 Apr 2006 18:05:16 -0000       1.58
+++ ecore_exe.c 5 Apr 2006 23:45:59 -0000       1.59
@@ -1173,28 +1173,28 @@
        while (token)
          {
             if (token[0] == '~')
-               break;
+              break;
             if (pre_command)
               {
                  if (token[0] == '[')
-                    break;
+                   break;
                  if (strchr(token, '='))
-                    break;
+                   break;
                  else
-                    pre_command = 0;
+                   pre_command = 0;
               }
             num_tokens++;
             token = strtok(NULL, " \t\n\v");
          }
        IF_FREE(buf);
-       if (!token && num_tokens)
+       if ((!token) && (num_tokens))
          {
             int                 i = 0;
             char               *token;
-
+            
             if (!(buf = strdup(exe_cmd)))
-               return;
-
+              return;
+            
             token = strtok(buf, " \t\n\v");
             use_sh = 0;
             if (!(args = (char **)calloc(num_tokens + 1, sizeof(char *))))
@@ -1205,26 +1205,26 @@
             for (i = 0; i < num_tokens; i++)
               {
                  if (token)
-                    args[i] = token;
+                   args[i] = token;
                  token = strtok(NULL, " \t\n\v");
               }
             args[num_tokens] = NULL;
          }
      }
-
+   
    setsid();
    if ((flags & ECORE_EXE_USE_SH))
-   {
+     {
        errno = 0;
        execl("/bin/sh", "/bin/sh", "-c", exe_cmd, (char *)NULL);
-   }
+     }
    else if (use_sh)
      {                         /* We have to use a shell to run this. */
        if (shell == NULL)
          {                     /* Find users preferred shell. */
             shell = getenv("SHELL");
             if (shell == 0)
-               shell = "/bin/sh";
+              shell = "/bin/sh";
          }
        errno = 0;
        execl(shell, shell, "-c", exe_cmd, (char *)NULL);




-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to