From 1ff97161fbfc82f90d63a96c2455295d662eae93 Mon Sep 17 00:00:00 2001 From: Andriy Voskoboinyk Date: Fri, 5 Sep 2014 14:15:25 +0300 Subject: [PATCH] temporarily revert a862874740f7778ea498cdc28220833f6a1a983e. --- src/toxic.c | 4 ++-- src/toxic.h | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/toxic.c b/src/toxic.c index 4da2f68..35c59fb 100644 --- a/src/toxic.c +++ b/src/toxic.c @@ -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"; diff --git a/src/toxic.h b/src/toxic.h index 7109d25..317c0d0 100644 --- a/src/toxic.h +++ b/src/toxic.h @@ -36,7 +36,6 @@ #endif #include -#include #include #include @@ -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);