summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBertrik Sikken <bertrik@sikken.nl>2010-02-24 19:40:45 +0000
committerBertrik Sikken <bertrik@sikken.nl>2010-02-24 19:40:45 +0000
commit2ac91dcd98ec663a0280ea6c787954f36db3ba89 (patch)
treee19f70bc20fdbd6a031014c0ba7c831888cb45ac
parent9502021590fae30155e8a7ae1abebf7d610488d3 (diff)
downloadrockbox-2ac91dcd98ec663a0280ea6c787954f36db3ba89.tar.gz
rockbox-2ac91dcd98ec663a0280ea6c787954f36db3ba89.tar.bz2
rockbox-2ac91dcd98ec663a0280ea6c787954f36db3ba89.zip
Kill some global variables
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24888 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/dsp.c4
-rw-r--r--apps/talk.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/apps/dsp.c b/apps/dsp.c
index 7292328212..9f53676e1c 100644
--- a/apps/dsp.c
+++ b/apps/dsp.c
@@ -218,8 +218,8 @@ static int treble; /* A/V */
/* Settings applicable to audio codec only */
static int32_t pitch_ratio = PITCH_SPEED_100;
static int channels_mode;
- long dsp_sw_gain;
- long dsp_sw_cross;
+static long dsp_sw_gain;
+static long dsp_sw_cross;
static bool dither_enabled;
static long eq_precut;
static long track_gain;
diff --git a/apps/talk.c b/apps/talk.c
index c7a7eab50a..b816d8e11c 100644
--- a/apps/talk.c
+++ b/apps/talk.c
@@ -120,8 +120,8 @@ static bool force_enqueue_next; /* enqueue next utterance even if enqueue is fal
static int queue_write; /* write index of queue, by application */
static int queue_read; /* read index of queue, by ISR context */
#if CONFIG_CODEC == SWCODEC
-struct mutex queue_mutex SHAREDBSS_ATTR; /* protects queue_read, queue_write
- and thumbnail_buf_used */
+/* protects queue_read, queue_write and thumbnail_buf_used */
+static struct mutex queue_mutex SHAREDBSS_ATTR;
#define talk_queue_lock() ({ mutex_lock(&queue_mutex); })
#define talk_queue_unlock() ({ mutex_unlock(&queue_mutex); })
#else