Only wait for a keypress if the user is told to press a key.

This commit is contained in:
Oliver Schmidt 2014-07-04 19:33:35 +02:00
parent ccc75404f4
commit 9ee1bae150
2 changed files with 4 additions and 0 deletions

View file

@ -42,8 +42,10 @@
void
error_exit(void)
{
#if LOG_CONF_ENABLED
log_message("Press any key to continue ...", "");
ctk_arch_getkey();
#endif /* LOG_CONF_ENABLED */
exit(EXIT_FAILURE);
}
/*-----------------------------------------------------------------------------------*/

View file

@ -42,8 +42,10 @@
void
error_exit(void)
{
#if LOG_CONF_ENABLED
log_message("Press any key to continue ...", "");
ctk_arch_getkey();
#endif /* LOG_CONF_ENABLED */
exit(EXIT_FAILURE);
}
/*-----------------------------------------------------------------------------------*/