From c079e73d08ce8d41348b3ffc0163409d1626d709 Mon Sep 17 00:00:00 2001 From: "Mikhail S. Pobolovets" Date: Sat, 9 May 2009 09:48:07 +0300 Subject: [PATCH] Warning fix: assignment from incompatible pointer type wtools.c:347: assignment from incompatible pointer type wtools.c:353: assignment from incompatible pointer type wtools.c:361: assignment from incompatible pointer type wtools.c:373: assignment from incompatible pointer type wtools.c:377: assignment from incompatible pointer type Signed-off-by: Mikhail S. Pobolovets --- src/widget.c | 2 +- src/wtools.c | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/widget.c b/src/widget.c index 8cecb8a35..d2eb9597f 100644 --- a/src/widget.c +++ b/src/widget.c @@ -347,7 +347,7 @@ button_set_text (WButton *b, const char *text) dlg_redraw (b->widget.parent); } - + /* Radio button widget */ static int radio_event (Gpm_Event *event, void *); diff --git a/src/wtools.c b/src/wtools.c index 8ebae1e33..4a2c95d47 100644 --- a/src/wtools.c +++ b/src/wtools.c @@ -344,17 +344,17 @@ quick_dialog_skip (QuickDialog *qd, int nskip) switch (qw->widget_type) { case quick_checkbox: - qw->widget = check_new (ypos, xpos, *qw->result, I18N (qw->text)); + qw->widget = (Widget *)check_new (ypos, xpos, *qw->result, I18N (qw->text)); break; case quick_radio: r = radio_new (ypos, xpos, qw->hotkey_pos, const_cast(const char **, qw->str_result)); r->pos = r->sel = qw->value; - qw->widget = r; + qw->widget = (Widget *)r; break; case quick_button: - qw->widget = + qw->widget = (Widget *) button_new (ypos, xpos, qw->value, (qw->value == B_ENTER) ? DEFPUSH_BUTTON : NORMAL_BUTTON, @@ -370,11 +370,11 @@ quick_dialog_skip (QuickDialog *qd, int nskip) input->point = 0; if (qw->value & 2) input->completion_flags |= INPUT_COMPLETE_CD; - qw->widget = input; + qw->widget = (Widget *)input; break; case quick_label: - qw->widget = label_new (ypos, xpos, I18N (qw->text)); + qw->widget = (Widget *)label_new (ypos, xpos, I18N (qw->text)); break; default: