* editcmd.c (edit_replace_cmd): Added const qualifier.

* editwidget.c (edit_my_define): likewise.
This commit is contained in:
Roland Illig 2004-09-19 15:40:09 +00:00
parent 07d52482c6
commit d5f70f2ab8
3 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2004-09-19 Roland Illig <roland.illig@gmx.de>
* editcmd.c (edit_replace_cmd): Added const qualifier.
* editwidget.c (edit_my_define): likewise.
2004-09-17 Andrew V. Samoilov <andrew@email.zp.ua>
* editcmd.c (edit_replace_prompt) [HAVE_CHARSET]: Warning hack.

View File

@ -1978,7 +1978,7 @@ edit_replace_cmd (WEdit *edit, int again)
}
edit_scroll_screen_over_cursor (edit);
} else {
char *msg = _(" Replace ");
const char *msg = _(" Replace ");
/* try and find from right here for next search */
edit->search_start = edit->curs1;
edit_update_curs_col (edit);

View File

@ -220,7 +220,7 @@ edit (const char *_file, int line)
return 1;
}
static void edit_my_define (Dlg_head * h, int idx, char *text,
static void edit_my_define (Dlg_head * h, int idx, const char *text,
void (*fn) (WEdit *), WEdit * edit)
{
define_label_data (h, idx, text, (buttonbarfn) fn, edit);