summaryrefslogtreecommitdiff
path: root/apps/talk.c
diff options
context:
space:
mode:
authorNils Wallménius <nils@rockbox.org>2007-06-13 15:35:07 +0000
committerNils Wallménius <nils@rockbox.org>2007-06-13 15:35:07 +0000
commitc7f9ca4067f26ba3d0471d50ed3f06b047171b50 (patch)
tree9bfaf2d5019c075ad97540a2beed8d68277ca021 /apps/talk.c
parentf50bd1151a65b1aeefaeab545187fba29881b800 (diff)
downloadrockbox-c7f9ca4067f26ba3d0471d50ed3f06b047171b50.zip
rockbox-c7f9ca4067f26ba3d0471d50ed3f06b047171b50.tar.gz
rockbox-c7f9ca4067f26ba3d0471d50ed3f06b047171b50.tar.bz2
rockbox-c7f9ca4067f26ba3d0471d50ed3f06b047171b50.tar.xz
Accept FS#7264 'Build with -Os switch for coldfire targets'.
Introduces MEM_FUNCTION_WRAPPERS(api) macro which adds wrappers functions to a plugin to make plugins link correctly when gcc calls mem* functions directly. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13625 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/talk.c')
-rw-r--r--apps/talk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/talk.c b/apps/talk.c
index 1f1eefd..1610fa9 100644
--- a/apps/talk.c
+++ b/apps/talk.c
@@ -132,7 +132,7 @@ static int talk_menu_disable; /* if non-zero, temporarily disable voice UI (not
/***************** Private prototypes *****************/
static void load_voicefile(void);
-static void mp3_callback(unsigned char** start, int* size);
+static void mp3_callback(unsigned char** start, size_t* size);
static int shutup(void);
static int queue_clip(unsigned char* buf, long size, bool enqueue);
static int open_voicefile(void);
@@ -262,7 +262,7 @@ load_err:
/* called in ISR context if mp3 data got consumed */
-static void mp3_callback(unsigned char** start, int* size)
+static void mp3_callback(unsigned char** start, size_t* size)
{
queue[queue_read].len -= sent; /* we completed this */
queue[queue_read].buf += sent;