Update header.

This commit is contained in:
QC 2015-03-17 20:05:37 +01:00
parent 101998e5b1
commit 4dd0a85fc4
2 changed files with 16 additions and 1 deletions

View File

@ -131,6 +131,21 @@ void create_pid_file ( const char *pidfile );
* This functions exits the program with 1 when it finds an invalid configuration.
*/
void config_sanity_check ( void );
/**
* @param arg string to parse.
*
* Parses a string into an character.
*
* @returns character.
*/
char helper_parse_char ( const char *arg );
/**
* @param argc number of arguments.
* @param argv Array of arguments.
*
* Set the application arguments.
*/
void cmd_set_arguments ( int argc, char **argv );
#endif // __HELPER_H__

View File

@ -788,7 +788,7 @@ static void menu_refilter ( MenuState *state, char **lines, menu_match_cb mmc, v
}
state->selected = MIN ( state->selected, state->filtered_lines - 1 );
if ( config.auto_select == TRUE && state->filtered_lines == 1 && state->num_lines > 1) {
if ( config.auto_select == TRUE && state->filtered_lines == 1 && state->num_lines > 1 ) {
*( state->selected_line ) = state->line_map[state->selected];
state->retv = MENU_OK;
state->quit = TRUE;