From c76904be53352ec1e7a743de1e7ea2ce51b513d2 Mon Sep 17 00:00:00 2001 From: Brandon Low Date: Fri, 24 Mar 2006 14:02:27 +0000 Subject: Fix warnings git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9230 a1c6a512-1295-4272-9138-f99709370657 --- apps/codecs/a52.c | 2 +- apps/codecs/aac.c | 2 +- apps/codecs/aiff.c | 4 ++-- apps/codecs/alac.c | 2 +- apps/codecs/flac.c | 2 +- apps/codecs/mpa.c | 2 +- apps/codecs/shorten.c | 2 +- apps/codecs/wav.c | 4 ++-- 8 files changed, 10 insertions(+), 10 deletions(-) (limited to 'apps/codecs') diff --git a/apps/codecs/a52.c b/apps/codecs/a52.c index 0c3f507914..5a55d8bcc8 100644 --- a/apps/codecs/a52.c +++ b/apps/codecs/a52.c @@ -128,7 +128,7 @@ extern char iend[]; /* this is the codec entry point */ enum codec_status codec_start(struct codec_api *api) { - long n; + size_t n; unsigned char *filebuf; int sample_loc; int retval; diff --git a/apps/codecs/aac.c b/apps/codecs/aac.c index 84f2a90625..ddaa07c645 100644 --- a/apps/codecs/aac.c +++ b/apps/codecs/aac.c @@ -146,7 +146,7 @@ enum codec_status codec_start(struct codec_api* api) } /* Request the required number of bytes from the input buffer */ - buffer=ci->request_buffer((long*)&n,sample_byte_size); + buffer=ci->request_buffer(&n,sample_byte_size); /* Decode one block - returned samples will be host-endian */ rb->yield(); diff --git a/apps/codecs/aiff.c b/apps/codecs/aiff.c index 5549d63239..144f4627bb 100644 --- a/apps/codecs/aiff.c +++ b/apps/codecs/aiff.c @@ -95,7 +95,7 @@ next_track: ci->yield(); /* assume the AIFF header is less than 1024 bytes */ - buf = ci->request_buffer((long *)&n, 1024); + buf = ci->request_buffer(&n, 1024); if (n < 44) { i = CODEC_ERROR; goto exit; @@ -235,7 +235,7 @@ next_track: bytesdone = newpos; ci->seek_complete(); } - aifbuf = (uint8_t *)ci->request_buffer((long *)&n, chunksize); + aifbuf = (uint8_t *)ci->request_buffer(&n, chunksize); if (n == 0) break; /* End of stream */ diff --git a/apps/codecs/alac.c b/apps/codecs/alac.c index a1c4f41683..df256a36b4 100644 --- a/apps/codecs/alac.c +++ b/apps/codecs/alac.c @@ -126,7 +126,7 @@ enum codec_status codec_start(struct codec_api* api) /* Request the required number of bytes from the input buffer */ - buffer=ci->request_buffer((long*)&n,sample_byte_size); + buffer=ci->request_buffer(&n,sample_byte_size); if (n!=sample_byte_size) { retval = CODEC_ERROR; goto exit; diff --git a/apps/codecs/flac.c b/apps/codecs/flac.c index f95ae2a8ce..2eec4da47d 100644 --- a/apps/codecs/flac.c +++ b/apps/codecs/flac.c @@ -226,7 +226,7 @@ enum codec_status codec_start(struct codec_api* api) FLACContext fc; uint32_t samplesdone; uint32_t elapsedtime; - long bytesleft; + size_t bytesleft; int consumed; int res; int frame; diff --git a/apps/codecs/mpa.c b/apps/codecs/mpa.c index d21730ff79..787d669f32 100644 --- a/apps/codecs/mpa.c +++ b/apps/codecs/mpa.c @@ -92,7 +92,7 @@ void init_mad(void) enum codec_status codec_start(struct codec_api *api) { int status = CODEC_OK; - long size; + size_t size; int file_end; int frame_skip; /* samples to skip current frame */ int samples_to_skip; /* samples to skip in total for this file (at start) */ diff --git a/apps/codecs/shorten.c b/apps/codecs/shorten.c index 6053742562..2cfb4c9e3a 100644 --- a/apps/codecs/shorten.c +++ b/apps/codecs/shorten.c @@ -49,7 +49,7 @@ enum codec_status codec_start(struct codec_api* api) uint32_t elapsedtime; int8_t *buf; int consumed, res, nsamples; - long bytesleft; + size_t bytesleft; /* Generic codec initialisation */ rb = api; diff --git a/apps/codecs/wav.c b/apps/codecs/wav.c index 2bde1c29a5..70d414482b 100644 --- a/apps/codecs/wav.c +++ b/apps/codecs/wav.c @@ -258,7 +258,7 @@ next_track: ci->yield(); /* assume the WAV header is less than 1024 bytes */ - buf = ci->request_buffer((long *)&n, 1024); + buf = ci->request_buffer(&n, 1024); if (n < 44) { i = CODEC_ERROR; goto exit; @@ -449,7 +449,7 @@ next_track: bytesdone = newpos; ci->seek_complete(); } - wavbuf = (uint8_t *)ci->request_buffer((long *)&n, chunksize); + wavbuf = (uint8_t *)ci->request_buffer(&n, chunksize); if (n == 0) break; /* End of stream */ -- cgit v1.2.3