From 6127e5aea656416e74cd9d5be60e09c347f0b63c Mon Sep 17 00:00:00 2001 From: Andrew Borodin Date: Tue, 16 Aug 2016 14:24:18 +0300 Subject: [PATCH] Get rid of #define const_cast(). --- lib/global.h | 3 --- src/vfs/fish/fish.c | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/global.h b/lib/global.h index 34d46c868..2ccfd9e57 100644 --- a/lib/global.h +++ b/lib/global.h @@ -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 diff --git a/src/vfs/fish/fish.c b/src/vfs/fish/fish.c index 0cb5f3096..782f94797 100644 --- a/src/vfs/fish/fish.c +++ b/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); close (fileset2[0]); close (fileset2[1]); - execvp (path, const_cast (char **, argv)); + execvp (path, (char **) argv); my_exit (3); } }