From dfc9bbff6518b2de6e4464fd348ae460766606fb Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Wed, 24 Jun 2009 20:12:15 -0500 Subject: [PATCH] fixed should_run declaration Removed the local declaration of should_run and set up the extern. --- espeakup.h | 1 + signal.c | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/espeakup.h b/espeakup.h index dc1f567..36ee159 100644 --- a/espeakup.h +++ b/espeakup.h @@ -84,6 +84,7 @@ extern void select_audio_mode(void); extern int init_audio(unsigned int rate); extern void lock_audio_mutex(void); extern void unlock_audio_mutex(void); +extern volatile int should_run; extern volatile int stopped; extern volatile int runner_must_stop; diff --git a/signal.c b/signal.c index 10e0b90..89d8a93 100644 --- a/signal.c +++ b/signal.c @@ -36,7 +36,6 @@ void *signal_thread(void *arg) struct sigaction temp; sigset_t sigset; int sig; - int should_run = 1; /* install dummy handlers for the signals we want to process */ temp.sa_handler = dummy_handler;