struct T_btn_simple
{
void *func_short_on;
};
на
struct T_btn_simple
{
void (*func_short_on) (void);
};
и
btn_no_dos.func_short_on = (void*)no_dos_start_one_dos;
на
btn_no_dos.func_short_on = no_dos_start_one_dos;
и
btn->func_short_on; <-- warning
на
btn->func_short_on(); <-- warning