* command.c: Removed casts on function pointer types.
Этот коммит содержится в:
родитель
7758bb1b95
Коммит
de1e263746
@ -2,6 +2,7 @@
|
||||
|
||||
* help.c: Fixed the use of check_movement_keys(). This had been
|
||||
really ugly code, involving casts on incompatible functions.
|
||||
* command.c: Removed casts on function pointer types.
|
||||
|
||||
2005-05-22 Pavel Roskin <proski@gnu.org>
|
||||
|
||||
|
@ -263,8 +263,10 @@ enter (WInput *cmdline)
|
||||
}
|
||||
|
||||
static cb_ret_t
|
||||
command_callback (WInput *cmd, widget_msg_t msg, int parm)
|
||||
command_callback (Widget *w, widget_msg_t msg, int parm)
|
||||
{
|
||||
WInput *cmd = (WInput *) w;
|
||||
|
||||
switch (msg) {
|
||||
case WIDGET_FOCUS:
|
||||
/* Never accept focus, otherwise panels will be unselected */
|
||||
@ -290,7 +292,7 @@ command_new (int y, int x, int cols)
|
||||
cmd = input_new (y, x, DEFAULT_COLOR, cols, "", "cmdline");
|
||||
|
||||
/* Add our hooks */
|
||||
cmd->widget.callback = (callback_fn) command_callback;
|
||||
cmd->widget.callback = command_callback;
|
||||
cmd->completion_flags |= INPUT_COMPLETE_COMMANDS;
|
||||
|
||||
return cmd;
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user