1
1

* command.c: Removed casts on function pointer types.

Этот коммит содержится в:
Roland Illig 2005-05-23 11:17:25 +00:00
родитель 7758bb1b95
Коммит de1e263746
2 изменённых файлов: 5 добавлений и 2 удалений

Просмотреть файл

@ -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;