From a92b9e65f7e4a3ce804811624f445ee3c2015f57 Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Wed, 26 Mar 2008 06:52:16 +0000 Subject: Fix pointer warnings in test_codec. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16813 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/test_codec.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/apps/plugins/test_codec.c b/apps/plugins/test_codec.c index 642c1c39ff..f33d83fb15 100644 --- a/apps/plugins/test_codec.c +++ b/apps/plugins/test_codec.c @@ -509,7 +509,7 @@ static void codec_thread(void) codec_playing = false; } -static unsigned char* codec_stack; +static uintptr_t* codec_stack; static size_t codec_stack_size; static enum plugin_status test_track(char* filename) @@ -585,8 +585,8 @@ static enum plugin_status test_track(char* filename) codec_playing = true; if ((codecthread_id = rb->create_thread(codec_thread, - (uint8_t*)codec_stack, codec_stack_size, 0, "testcodec" - IF_PRIO(,PRIORITY_PLAYBACK) IF_COP(, CPU))) == NULL) + codec_stack, codec_stack_size, 0, "testcodec" + IF_PRIO(,PRIORITY_PLAYBACK) IF_COP(, CPU))) == NULL) { log_text("Cannot create codec thread!",true); goto exit; @@ -642,7 +642,7 @@ exit: /* plugin entry point */ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) { - unsigned char* codec_stack_copy; + uintptr_t* codec_stack_copy; int result, selection = 0; enum plugin_status res = PLUGIN_OK; int scandir; @@ -692,7 +692,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) #endif codec_stack_copy = codec_mallocbuf + 512*1024; - audiobuf = codec_stack_copy + codec_stack_size; + audiobuf = SKIPBYTES(codec_stack_copy, codec_stack_size); audiosize -= 512*1024 + codec_stack_size; #ifndef SIMULATOR -- cgit