From 011b6670e2f83b16ad1102a723335baa5e1f1552 Mon Sep 17 00:00:00 2001 From: Andrew Borodin Date: Wed, 10 Nov 2010 22:04:51 +0300 Subject: [PATCH] Direct typecasting instead of str_unconst() calls. Signed-off-by: Andrew Borodin --- src/find.c | 4 ++-- src/user.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/find.c b/src/find.c index 0a415cc3f..4c0bacdc3 100644 --- a/src/find.c +++ b/src/find.c @@ -726,7 +726,7 @@ push_directory (const char *dir) dir_stack *new; new = g_new (dir_stack, 1); - new->name = str_unconst (dir); + new->name = (char *) dir; new->prev = dir_stack_base; dir_stack_base = new; } @@ -1469,7 +1469,7 @@ find_file (const char *start_dir, const char *pattern, const char *content, setup_gui (); /* FIXME: Need to cleanup this, this ought to be passed non-globaly */ - find_pattern = str_unconst (pattern); + find_pattern = (char *) pattern; content_pattern = NULL; if (options.content_use && content != NULL && str_is_valid_string (content)) diff --git a/src/user.c b/src/user.c index a82ebe6ec..0ba8d456c 100644 --- a/src/user.c +++ b/src/user.c @@ -737,7 +737,7 @@ expand_format (struct WEdit *edit_widget, char c, gboolean do_quote) } #ifdef USE_INTERNAL_EDIT else if (mc_run_mode == MC_RUN_EDITOR) - fname = str_unconst (edit_get_file_name (edit_widget)); + fname = (char *) edit_get_file_name (edit_widget); #endif if (do_quote) -- 2.11.4.GIT