Only wait for a keypress if the user is told to press a key.
This commit is contained in:
parent
ccc75404f4
commit
9ee1bae150
|
@ -42,8 +42,10 @@
|
||||||
void
|
void
|
||||||
error_exit(void)
|
error_exit(void)
|
||||||
{
|
{
|
||||||
|
#if LOG_CONF_ENABLED
|
||||||
log_message("Press any key to continue ...", "");
|
log_message("Press any key to continue ...", "");
|
||||||
ctk_arch_getkey();
|
ctk_arch_getkey();
|
||||||
|
#endif /* LOG_CONF_ENABLED */
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
/*-----------------------------------------------------------------------------------*/
|
/*-----------------------------------------------------------------------------------*/
|
||||||
|
|
|
@ -42,8 +42,10 @@
|
||||||
void
|
void
|
||||||
error_exit(void)
|
error_exit(void)
|
||||||
{
|
{
|
||||||
|
#if LOG_CONF_ENABLED
|
||||||
log_message("Press any key to continue ...", "");
|
log_message("Press any key to continue ...", "");
|
||||||
ctk_arch_getkey();
|
ctk_arch_getkey();
|
||||||
|
#endif /* LOG_CONF_ENABLED */
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
/*-----------------------------------------------------------------------------------*/
|
/*-----------------------------------------------------------------------------------*/
|
||||||
|
|
Loading…
Reference in a new issue