summaryrefslogtreecommitdiff
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
parent12f3fec388ae56f8fb2e50b681dbde81d4669208 (diff)
downloadrockbox-c76904be53352ec1e7a743de1e7ea2ce51b513d2.tar.gz
rockbox-c76904be53352ec1e7a743de1e7ea2ce51b513d2.zip
Fix warnings
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9230 a1c6a512-1295-4272-9138-f99709370657
-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 0c3f507914..5a55d8bcc8 100644
--- a/apps/codecs/a52.c
+++ b/apps/codecs/a52.c
@@ -128,7 +128,7 @@ extern char iend[];
128/* this is the codec entry point */ 128/* this is the codec entry point */
129enum codec_status codec_start(struct codec_api *api) 129enum codec_status codec_start(struct codec_api *api)
130{ 130{
131 long n; 131 size_t n;
132 unsigned char *filebuf; 132 unsigned char *filebuf;
133 int sample_loc; 133 int sample_loc;
134 int retval; 134 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)
146 } 146 }
147 147
148 /* Request the required number of bytes from the input buffer */ 148 /* Request the required number of bytes from the input buffer */
149 buffer=ci->request_buffer((long*)&n,sample_byte_size); 149 buffer=ci->request_buffer(&n,sample_byte_size);
150 150
151 /* Decode one block - returned samples will be host-endian */ 151 /* Decode one block - returned samples will be host-endian */
152 rb->yield(); 152 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:
95 ci->yield(); 95 ci->yield();
96 96
97 /* assume the AIFF header is less than 1024 bytes */ 97 /* assume the AIFF header is less than 1024 bytes */
98 buf = ci->request_buffer((long *)&n, 1024); 98 buf = ci->request_buffer(&n, 1024);
99 if (n < 44) { 99 if (n < 44) {
100 i = CODEC_ERROR; 100 i = CODEC_ERROR;
101 goto exit; 101 goto exit;
@@ -235,7 +235,7 @@ next_track:
235 bytesdone = newpos; 235 bytesdone = newpos;
236 ci->seek_complete(); 236 ci->seek_complete();
237 } 237 }
238 aifbuf = (uint8_t *)ci->request_buffer((long *)&n, chunksize); 238 aifbuf = (uint8_t *)ci->request_buffer(&n, chunksize);
239 239
240 if (n == 0) 240 if (n == 0)
241 break; /* End of stream */ 241 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)
126 126
127 /* Request the required number of bytes from the input buffer */ 127 /* Request the required number of bytes from the input buffer */
128 128
129 buffer=ci->request_buffer((long*)&n,sample_byte_size); 129 buffer=ci->request_buffer(&n,sample_byte_size);
130 if (n!=sample_byte_size) { 130 if (n!=sample_byte_size) {
131 retval = CODEC_ERROR; 131 retval = CODEC_ERROR;
132 goto exit; 132 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)
226 FLACContext fc; 226 FLACContext fc;
227 uint32_t samplesdone; 227 uint32_t samplesdone;
228 uint32_t elapsedtime; 228 uint32_t elapsedtime;
229 long bytesleft; 229 size_t bytesleft;
230 int consumed; 230 int consumed;
231 int res; 231 int res;
232 int frame; 232 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)
92enum codec_status codec_start(struct codec_api *api) 92enum codec_status codec_start(struct codec_api *api)
93{ 93{
94 int status = CODEC_OK; 94 int status = CODEC_OK;
95 long size; 95 size_t size;
96 int file_end; 96 int file_end;
97 int frame_skip; /* samples to skip current frame */ 97 int frame_skip; /* samples to skip current frame */
98 int samples_to_skip; /* samples to skip in total for this file (at start) */ 98 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)
49 uint32_t elapsedtime; 49 uint32_t elapsedtime;
50 int8_t *buf; 50 int8_t *buf;
51 int consumed, res, nsamples; 51 int consumed, res, nsamples;
52 long bytesleft; 52 size_t bytesleft;
53 53
54 /* Generic codec initialisation */ 54 /* Generic codec initialisation */
55 rb = api; 55 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:
258 ci->yield(); 258 ci->yield();
259 259
260 /* assume the WAV header is less than 1024 bytes */ 260 /* assume the WAV header is less than 1024 bytes */
261 buf = ci->request_buffer((long *)&n, 1024); 261 buf = ci->request_buffer(&n, 1024);
262 if (n < 44) { 262 if (n < 44) {
263 i = CODEC_ERROR; 263 i = CODEC_ERROR;
264 goto exit; 264 goto exit;
@@ -449,7 +449,7 @@ next_track:
449 bytesdone = newpos; 449 bytesdone = newpos;
450 ci->seek_complete(); 450 ci->seek_complete();
451 } 451 }
452 wavbuf = (uint8_t *)ci->request_buffer((long *)&n, chunksize); 452 wavbuf = (uint8_t *)ci->request_buffer(&n, chunksize);
453 453
454 if (n == 0) 454 if (n == 0)
455 break; /* End of stream */ 455 break; /* End of stream */