Browse Source

Get rid of #define const_cast().

Andrew Borodin 8 years ago
parent
commit
6127e5aea6
2 changed files with 1 additions and 4 deletions
  1. 0 3
      lib/global.h
  2. 1 1
      src/vfs/fish/fish.c

+ 0 - 3
lib/global.h

@@ -135,9 +135,6 @@
 /* one caused by typing 'exit' or 'logout' in the subshell */
 /* one caused by typing 'exit' or 'logout' in the subshell */
 #define SUBSHELL_EXIT 128
 #define SUBSHELL_EXIT 128
 
 
-/* C++ style type casts */
-#define const_cast(m_type, m_expr) ((m_type) (m_expr))
-
 #if 0
 #if 0
 #ifdef MC_ENABLE_DEBUGGING_CODE
 #ifdef MC_ENABLE_DEBUGGING_CODE
 #undef NDEBUG
 #undef NDEBUG

+ 1 - 1
src/vfs/fish/fish.c

@@ -340,7 +340,7 @@ fish_pipeopen (struct vfs_s_super *super, const char *path, const char *argv[])
         res = open ("/dev/null", O_WRONLY);
         res = open ("/dev/null", O_WRONLY);
         close (fileset2[0]);
         close (fileset2[0]);
         close (fileset2[1]);
         close (fileset2[1]);
-        execvp (path, const_cast (char **, argv));
+        execvp (path, (char **) argv);
         my_exit (3);
         my_exit (3);
     }
     }
 }
 }