mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
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 <styx.mp@gmail.com>
This commit is contained in:
parent
5f448874e2
commit
c079e73d08
@ -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 *);
|
||||
|
||||
|
10
src/wtools.c
10
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:
|
||||
|
Loading…
Reference in New Issue
Block a user