summaryrefslogtreecommitdiff
path: root/apps/codecs
diff options
context:
space:
mode:
authorBrandon Low <lostlogic@rockbox.org>2006-03-24 14:02:27 +0000
committerBrandon Low <lostlogic@rockbox.org>2006-03-24 14:02:27 +0000
commitc76904be53352ec1e7a743de1e7ea2ce51b513d2 (patch)
tree0387894965d38baee56c7c283dad172a621f9681 /apps/codecs
parent12f3fec388ae56f8fb2e50b681dbde81d4669208 (diff)
downloadrockbox-c76904be53352ec1e7a743de1e7ea2ce51b513d2.zip
rockbox-c76904be53352ec1e7a743de1e7ea2ce51b513d2.tar.gz
rockbox-c76904be53352ec1e7a743de1e7ea2ce51b513d2.tar.bz2
rockbox-c76904be53352ec1e7a743de1e7ea2ce51b513d2.tar.xz
Fix warnings
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9230 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs')
-rw-r--r--apps/codecs/a52.c2
-rw-r--r--apps/codecs/aac.c2
-rw-r--r--apps/codecs/aiff.c4
-rw-r--r--apps/codecs/alac.c2
-rw-r--r--apps/codecs/flac.c2
-rw-r--r--apps/codecs/mpa.c2
-rw-r--r--apps/codecs/shorten.c2
-rw-r--r--apps/codecs/wav.c4
8 files changed, 10 insertions, 10 deletions
diff --git a/apps/codecs/a52.c b/apps/codecs/a52.c
index 0c3f507..5a55d8b 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 84f2a90..ddaa07c 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 5549d63..144f462 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 a1c4f41..df256a3 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 f95ae2a..2eec4da 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 d21730f..787d669 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 6053742..2cfb4c9 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 2bde1c2..70d4144 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 */