diff --git a/edit/ChangeLog b/edit/ChangeLog index 2a3f5147e..aee8a6592 100644 --- a/edit/ChangeLog +++ b/edit/ChangeLog @@ -1,3 +1,8 @@ +2004-09-19 Roland Illig + + * editcmd.c (edit_replace_cmd): Added const qualifier. + * editwidget.c (edit_my_define): likewise. + 2004-09-17 Andrew V. Samoilov * editcmd.c (edit_replace_prompt) [HAVE_CHARSET]: Warning hack. diff --git a/edit/editcmd.c b/edit/editcmd.c index 8961b8c0f..6bcac206c 100644 --- a/edit/editcmd.c +++ b/edit/editcmd.c @@ -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); diff --git a/edit/editwidget.c b/edit/editwidget.c index e282706b2..4e342eca0 100644 --- a/edit/editwidget.c +++ b/edit/editwidget.c @@ -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);