Get rid of #define const_cast().

This commit is contained in:
Andrew Borodin 2016-08-16 14:24:18 +03:00
parent b22e376abf
commit 6127e5aea6
2 changed files with 1 additions and 4 deletions

View File

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

View File

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