diff --git a/src/ChangeLog b/src/ChangeLog index 8cce4a50e..811ee256e 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -11,6 +11,8 @@ * fileopctx.c: Likewise. * help.c: Removed function casts. * info.c: Removed function casts. + * main.h: Changed the type of quiet_quit_cmd() from int to void. + * main.c: Likewise. Removed function cast. 2005-05-22 Pavel Roskin diff --git a/src/main.c b/src/main.c index 624cb59fe..7b81f2471 100644 --- a/src/main.c +++ b/src/main.c @@ -487,12 +487,11 @@ quit_cmd (void) quit_cmd_internal (0); } -int +void quiet_quit_cmd (void) { print_last_revert = 1; quit_cmd_internal (1); - return quit; } /* @@ -1253,7 +1252,7 @@ nothing (void) static const key_map default_map[] = { {KEY_F (19), menu_last_selected_cmd}, - {KEY_F (20), (key_callback) quiet_quit_cmd}, + {KEY_F (20), quiet_quit_cmd}, /* Copy useful information to the command line */ {ALT ('a'), copy_current_pathname}, diff --git a/src/main.h b/src/main.h index 28e285823..5fcc53a02 100644 --- a/src/main.h +++ b/src/main.h @@ -99,7 +99,7 @@ int do_cd (const char *new_dir, enum cd_enum cd_type); /* For find.c * void change_panel (void); int load_prompt (int, void *); void save_cwds_stat (void); -int quiet_quit_cmd (void); /* For cmd.c and command.c */ +void quiet_quit_cmd (void); /* For cmd.c and command.c */ void touch_bar (void); void update_xterm_title_path (void);