1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-11-22 21:53:05 +01:00

temporarily revert a862874740.

This commit is contained in:
Andriy Voskoboinyk 2014-09-05 14:15:25 +03:00
parent 667410e879
commit 1ff97161fb
2 changed files with 4 additions and 5 deletions

View File

@ -102,7 +102,7 @@ static void init_signal_catchers(void)
signal(SIGSEGV, catch_SIGSEGV);
}
noreturn void exit_toxic_success(Tox *m)
void exit_toxic_success(Tox *m)
{
store_data(m, DATA_FILE);
close_all_file_senders(m);
@ -124,7 +124,7 @@ noreturn void exit_toxic_success(Tox *m)
exit(EXIT_SUCCESS);
}
noreturn void exit_toxic_err(const char *errmsg, int errcode)
void exit_toxic_err(const char *errmsg, int errcode)
{
if (errmsg == NULL)
errmsg = "No error message";

View File

@ -36,7 +36,6 @@
#endif
#include <stdbool.h>
#include <stdnoreturn.h>
#include <curses.h>
#include <tox/tox.h>
@ -86,8 +85,8 @@ typedef enum _FATAL_ERRS {
Uncomment if necessary */
/* #define URXVT_FIX */
noreturn void exit_toxic_success(Tox *m);
noreturn void exit_toxic_err(const char *errmsg, int errcode);
void exit_toxic_success(Tox *m);
void exit_toxic_err(const char *errmsg, int errcode);
int store_data(Tox *m, char *path);