mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-03 18:14:25 +03:00
Get rid of #define const_cast().
This commit is contained in:
parent
b22e376abf
commit
6127e5aea6
@ -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
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user