From 8a701e5488989944f120f0c37848de24fbeff455 Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Sun, 14 Aug 2011 15:37:05 +0000 Subject: 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 --- apps/talk.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'apps/talk.c') 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 @@ #include "logf.h" #include "bitswap.h" #include "structec.h" +#include "plugin.h" /* plugin_get_buffer() */ #include "debug.h" @@ -290,7 +291,7 @@ static void load_voicefile(bool probe, char* buf, size_t bufsize) }; union voicebuf voicebuf; - int load_size, alloc_size; + size_t load_size, alloc_size; int got_size; #ifndef TALK_PARTIAL_LOAD size_t file_size; @@ -396,7 +397,7 @@ static void load_voicefile(bool probe, char* buf, size_t bufsize) #ifdef TALK_PARTIAL_LOAD alloc_size += silence_len + QUEUE_SIZE; #endif - if ((size_t)alloc_size > bufsize) + if (alloc_size > bufsize) goto load_err; return; -- cgit v1.2.3