diff --git a/edit/edit.c b/edit/edit.c index 488650f80..e46b4d5d9 100644 --- a/edit/edit.c +++ b/edit/edit.c @@ -282,7 +282,7 @@ edit_load_file_fast (WEdit *edit, const char *filename) long buf, buf2; int file = -1; #ifdef HAVE_CHARSET - char *cp_id; + const char *cp_id; #endif edit->curs2 = edit->last_byte; diff --git a/edit/editcmd.c b/edit/editcmd.c index 8e8022249..4054d1e25 100644 --- a/edit/editcmd.c +++ b/edit/editcmd.c @@ -2336,7 +2336,7 @@ edit_select_codepage_cmd (WEdit *edit) { #ifdef HAVE_CHARSET if (do_select_codepage ()) { - char *cp_id; + const char *cp_id; cp_id = get_codepage_id (source_codepage); if (cp_id != NULL)