summaryrefslogtreecommitdiff
path: root/apps/talk.c
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2011-08-14 15:37:05 +0000
committerThomas Martitz <kugel@rockbox.org>2011-08-14 15:37:05 +0000
commit8a701e5488989944f120f0c37848de24fbeff455 (patch)
tree291b05e4bddad26c92668192edddd4ba4be310dd /apps/talk.c
parent7695b0403f772dd773ba25151bd8b97a7d16537e (diff)
downloadrockbox-8a701e5488989944f120f0c37848de24fbeff455.tar.gz
rockbox-8a701e5488989944f120f0c37848de24fbeff455.zip
Fix errors and warnings.
The buffer_offset paramter of audio_init_recording() is removed as it was unused in both implementations. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30310 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/talk.c')
-rw-r--r--apps/talk.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/talk.c b/apps/talk.c
index 9fd6fb06ec..0211bcc1f8 100644
--- a/apps/talk.c
+++ b/apps/talk.c
@@ -41,6 +41,7 @@
41#include "logf.h" 41#include "logf.h"
42#include "bitswap.h" 42#include "bitswap.h"
43#include "structec.h" 43#include "structec.h"
44#include "plugin.h" /* plugin_get_buffer() */
44#include "debug.h" 45#include "debug.h"
45 46
46 47
@@ -290,7 +291,7 @@ static void load_voicefile(bool probe, char* buf, size_t bufsize)
290 }; 291 };
291 union voicebuf voicebuf; 292 union voicebuf voicebuf;
292 293
293 int load_size, alloc_size; 294 size_t load_size, alloc_size;
294 int got_size; 295 int got_size;
295#ifndef TALK_PARTIAL_LOAD 296#ifndef TALK_PARTIAL_LOAD
296 size_t file_size; 297 size_t file_size;
@@ -396,7 +397,7 @@ static void load_voicefile(bool probe, char* buf, size_t bufsize)
396#ifdef TALK_PARTIAL_LOAD 397#ifdef TALK_PARTIAL_LOAD
397 alloc_size += silence_len + QUEUE_SIZE; 398 alloc_size += silence_len + QUEUE_SIZE;
398#endif 399#endif
399 if ((size_t)alloc_size > bufsize) 400 if (alloc_size > bufsize)
400 goto load_err; 401 goto load_err;
401 return; 402 return;
402 403