1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

Make widget.ops point to const.

This commit is contained in:
Kalle Olavi Niemitalo 2007-01-28 14:38:53 +02:00 committed by Kalle Olavi Niemitalo
parent 3756bec9e0
commit d40cccef0f
2 changed files with 2 additions and 2 deletions

View File

@ -344,7 +344,7 @@ static void
dialog_ev_kbd(struct dialog_data *dlg_data) dialog_ev_kbd(struct dialog_data *dlg_data)
{ {
struct widget_data *widget_data = selected_widget(dlg_data); struct widget_data *widget_data = selected_widget(dlg_data);
struct widget_ops *ops = widget_data->widget->ops; const struct widget_ops *ops = widget_data->widget->ops;
/* XXX: KEYMAP_EDIT ? --pasky */ /* XXX: KEYMAP_EDIT ? --pasky */
enum menu_action action_id; enum menu_action action_id;
struct term_event *ev = dlg_data->term_event; struct term_event *ev = dlg_data->term_event;

View File

@ -30,7 +30,7 @@ struct widget_ops {
}; };
struct widget { struct widget {
struct widget_ops *ops; const struct widget_ops *ops;
unsigned char *text; unsigned char *text;