This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch master
in repository efm2.

View the commit online.

commit 97531fc3e1415e7610963ae57012a2c4b6f4c79f
Author: Carsten Haitzler (Rasterman) <[email protected]>
AuthorDate: Mon Mar 30 14:23:01 2026 +0100

    code tidy
---
 src/backends/default/typebuf.c | 24 +++++++++++++-----------
 1 file changed, 13 insertions(+), 11 deletions(-)

diff --git a/src/backends/default/typebuf.c b/src/backends/default/typebuf.c
index 6f96ccd..81a1b9b 100644
--- a/src/backends/default/typebuf.c
+++ b/src/backends/default/typebuf.c
@@ -169,10 +169,10 @@ _bi_ls_complete(char **args)
 static void
 _bi_rm_run(char **args)
 {
+  int        i;
   Eina_List *files = NULL;
-  int        i, j;
-  Eina_Bool  opt_f = EINA_FALSE;
   char      *full  = NULL;
+  Eina_Bool  opt_f = EINA_FALSE;
 
   if (!_has_args(args, 1)) return;
   for (i = 1; args[i]; i++)
@@ -181,6 +181,8 @@ _bi_rm_run(char **args)
 
       if (arg[0] == '-')
         { // its an option
+          int j;
+
           for (j = 1; arg[j]; j++)
             {
               if (arg[j] == 'f') opt_f = EINA_TRUE;
@@ -212,8 +214,8 @@ _bi_rm_complete(char **args)
 static void
 _bi_unlink_run(char **args)
 {
-  Eina_List *files = NULL;
   int        i;
+  Eina_List *files = NULL;
   char      *full = NULL;
 
   if (!_has_args(args, 1)) return;
@@ -221,11 +223,10 @@ _bi_unlink_run(char **args)
     {
       const char *arg = args[i];
 
-      if (arg[0])
-        { // it's a file - convert to path if needed
-          full = _path_arg_rel_to_abs(arg);
-          if (full) files = eina_list_append(files, full);
-        }
+      if (!arg[0]) continue;
+      // it's a file - convert to path if needed
+      full = _path_arg_rel_to_abs(arg);
+      if (full) files = eina_list_append(files, full);
     }
   if (files)
     { // only run if we have files
@@ -271,8 +272,8 @@ _bi_cp_complete(char **args)
 static void
 _bi_ln_run(char **args)
 {
-  Eina_List *files = NULL;
   int        i;
+  Eina_List *files = NULL;
   char      *full = NULL;
 
   if (!_has_args(args, 2)) return;
@@ -291,11 +292,12 @@ _bi_ln_run(char **args)
         }
     }
   if (files)
-    { // only run if we have files
+    { // only run if we have files - first is src, 2nd is dst
       char       *link_src  = eina_list_nth(files, 0);
       const char *link_file = eina_list_nth(files, 1);
+
       if (link_src && link_file)
-        {
+        { // do a link file op
           status_begin();
           status_op("ln");
           fs_ln(link_src, link_file, EINA_FALSE);

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to