Use sig_atomic_t for ctrlc_flag

Semantic change only.

Signed-off-by: Tamas TEVESZ <ice@extreme.hu>
This commit is contained in:
Tamas TEVESZ 2013-12-06 08:00:21 +01:00 committed by Daniel Beer
parent 74d01ff269
commit 5909c6d60b
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ HANDLE ctrlc_win32_event(void)
#include <pthread.h> #include <pthread.h>
#include <signal.h> #include <signal.h>
static volatile int ctrlc_flag; static volatile sig_atomic_t ctrlc_flag;
static pthread_t ctrlc_thread; static pthread_t ctrlc_thread;
static void sigint_handler(int signum) static void sigint_handler(int signum)