diff options
author | Jens Arnold <amiconn@rockbox.org> | 2007-10-10 06:02:08 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2007-10-10 06:02:08 +0000 |
commit | 064de4ce4d30ab1960c9a08a4056220e3adea4df (patch) | |
tree | 81160d3fef718b933d9994f3189e9cba3981f79b | |
parent | 100d343963ad2cc86727be8d438eb7e66ef40db3 (diff) | |
download | rockbox-064de4ce4d30ab1960c9a08a4056220e3adea4df.tar.gz rockbox-064de4ce4d30ab1960c9a08a4056220e3adea4df.zip |
Slight code policing.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15065 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | apps/player/keyboard.c | 17 | ||||
-rw-r--r-- | 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) | |||
76 | { | 76 | { |
77 | if (talk_menus_enabled()) /* voice UI? */ | 77 | if (talk_menus_enabled()) /* voice UI? */ |
78 | { | 78 | { |
79 | unsigned char tmp[5]; | 79 | unsigned char tmp[5]; |
80 | /* store char to pass to talk_spell */ | 80 | /* store char to pass to talk_spell */ |
81 | unsigned char* utf8 = utf8encode(c, tmp); | 81 | unsigned char* utf8 = utf8encode(c, tmp); |
82 | *utf8 = 0; | 82 | *utf8 = 0; |
83 | 83 | ||
84 | if(c == ' ') | 84 | if(c == ' ') |
85 | talk_id(VOICE_BLANK, false); | 85 | talk_id(VOICE_BLANK, false); |
86 | else talk_spell(tmp, false); | 86 | else |
87 | talk_spell(tmp, false); | ||
87 | } | 88 | } |
88 | } | 89 | } |
89 | 90 | ||
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) | |||
192 | { | 192 | { |
193 | if (talk_menus_enabled()) /* voice UI? */ | 193 | if (talk_menus_enabled()) /* voice UI? */ |
194 | { | 194 | { |
195 | unsigned char tmp[5]; | 195 | unsigned char tmp[5]; |
196 | /* store char to pass to talk_spell */ | 196 | /* store char to pass to talk_spell */ |
197 | unsigned char* utf8 = utf8encode(c, tmp); | 197 | unsigned char* utf8 = utf8encode(c, tmp); |
198 | *utf8 = 0; | 198 | *utf8 = 0; |
199 | 199 | ||
200 | if(c == ' ') | 200 | if(c == ' ') |
201 | talk_id(VOICE_BLANK, false); | 201 | talk_id(VOICE_BLANK, false); |
202 | else talk_spell(tmp, false); | 202 | else |
203 | talk_spell(tmp, false); | ||
203 | } | 204 | } |
204 | } | 205 | } |
205 | 206 | ||