From 2ac91dcd98ec663a0280ea6c787954f36db3ba89 Mon Sep 17 00:00:00 2001 From: Bertrik Sikken Date: Wed, 24 Feb 2010 19:40:45 +0000 Subject: [PATCH] Kill some global variables git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24888 a1c6a512-1295-4272-9138-f99709370657 --- apps/dsp.c | 4 ++-- apps/talk.c | 4 ++-- 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