From 064de4ce4d30ab1960c9a08a4056220e3adea4df Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Wed, 10 Oct 2007 06:02:08 +0000 Subject: Slight code policing. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15065 a1c6a512-1295-4272-9138-f99709370657 --- apps/player/keyboard.c | 17 +++++++++-------- apps/recorder/keyboard.c | 17 +++++++++-------- 2 files changed, 18 insertions(+), 16 deletions(-) diff --git a/apps/player/keyboard.c b/apps/player/keyboard.c index 6baa0d5c90..c89161c8ca 100644 --- a/apps/player/keyboard.c +++ b/apps/player/keyboard.c @@ -76,14 +76,15 @@ static void kbd_spellchar(char c) { if (talk_menus_enabled()) /* voice UI? */ { - unsigned char tmp[5]; - /* store char to pass to talk_spell */ - unsigned char* utf8 = utf8encode(c, tmp); - *utf8 = 0; - - if(c == ' ') - talk_id(VOICE_BLANK, false); - else talk_spell(tmp, false); + unsigned char tmp[5]; + /* store char to pass to talk_spell */ + unsigned char* utf8 = utf8encode(c, tmp); + *utf8 = 0; + + if(c == ' ') + talk_id(VOICE_BLANK, false); + else + talk_spell(tmp, false); } } diff --git a/apps/recorder/keyboard.c b/apps/recorder/keyboard.c index 7a46431881..fbfb55942e 100644 --- a/apps/recorder/keyboard.c +++ b/apps/recorder/keyboard.c @@ -192,14 +192,15 @@ static void kbd_spellchar(unsigned short c) { if (talk_menus_enabled()) /* voice UI? */ { - unsigned char tmp[5]; - /* store char to pass to talk_spell */ - unsigned char* utf8 = utf8encode(c, tmp); - *utf8 = 0; - - if(c == ' ') - talk_id(VOICE_BLANK, false); - else talk_spell(tmp, false); + unsigned char tmp[5]; + /* store char to pass to talk_spell */ + unsigned char* utf8 = utf8encode(c, tmp); + *utf8 = 0; + + if(c == ' ') + talk_id(VOICE_BLANK, false); + else + talk_spell(tmp, false); } } -- cgit v1.2.3