From c7f9ca4067f26ba3d0471d50ed3f06b047171b50 Mon Sep 17 00:00:00 2001 From: Nils Wallménius Date: Wed, 13 Jun 2007 15:35:07 +0000 Subject: 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 --- firmware/mp3_playback.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'firmware/mp3_playback.c') diff --git a/firmware/mp3_playback.c b/firmware/mp3_playback.c index 68fa96d619..c5c747ac2c 100644 --- a/firmware/mp3_playback.c +++ b/firmware/mp3_playback.c @@ -61,7 +61,7 @@ static long playstart_tick; static long cumulative_ticks; /* the registered callback function to ask for more mp3 data */ -static void (*callback_for_more)(unsigned char**, int*); +static void (*callback_for_more)(unsigned char**, size_t*); #endif /* #ifndef SIMULATOR */ /* list of tracks in memory */ @@ -167,7 +167,7 @@ void DEI3(void) __attribute__((interrupt_handler)); void DEI3(void) { unsigned char* start; - int size = 0; + size_t size = 0; if (callback_for_more != NULL) { @@ -502,7 +502,7 @@ void mp3_play_init(void) } void mp3_play_data(const unsigned char* start, int size, - void (*get_more)(unsigned char** start, int* size) /* callback fn */ + void (*get_more)(unsigned char** start, size_t* size) /* callback fn */ ) { /* init DMA */ -- cgit v1.2.3