From d40cccef0fe2baec17ae45a1221a683a93214ff4 Mon Sep 17 00:00:00 2001 From: Kalle Olavi Niemitalo Date: Sun, 28 Jan 2007 14:38:53 +0200 Subject: [PATCH] Make widget.ops point to const. --- src/bfu/dialog.c | 2 +- src/bfu/widget.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bfu/dialog.c b/src/bfu/dialog.c index 62048ef3..3bdc574b 100644 --- a/src/bfu/dialog.c +++ b/src/bfu/dialog.c @@ -344,7 +344,7 @@ static void dialog_ev_kbd(struct dialog_data *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 */ enum menu_action action_id; struct term_event *ev = dlg_data->term_event; diff --git a/src/bfu/widget.h b/src/bfu/widget.h index d54695cb..ec1b4281 100644 --- a/src/bfu/widget.h +++ b/src/bfu/widget.h @@ -30,7 +30,7 @@ struct widget_ops { }; struct widget { - struct widget_ops *ops; + const struct widget_ops *ops; unsigned char *text;