diff options
author | Thomas Martitz <kugel@rockbox.org> | 2011-08-14 15:43:43 +0000 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2011-08-14 15:43:43 +0000 |
commit | b8fabfef8455166361144428a10e3a5d6bf5466b (patch) | |
tree | 89695362c0dc201fe20c3d1b15cc5195f1240758 /apps | |
parent | 8a701e5488989944f120f0c37848de24fbeff455 (diff) | |
download | rockbox-b8fabfef8455166361144428a10e3a5d6bf5466b.tar.gz rockbox-b8fabfef8455166361144428a10e3a5d6bf5466b.zip |
Fix remaining problems.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30311 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r-- | apps/mpeg.c | 1 | ||||
-rw-r--r-- | apps/talk.c | 6 |
2 files changed, 3 insertions, 4 deletions
diff --git a/apps/mpeg.c b/apps/mpeg.c index 5e2816f633..6dd55b741c 100644 --- a/apps/mpeg.c +++ b/apps/mpeg.c | |||
@@ -2650,7 +2650,6 @@ void audio_set_recording_gain(int left, int right, int type) | |||
2650 | void audio_init_recording(void) | 2650 | void audio_init_recording(void) |
2651 | { | 2651 | { |
2652 | /* a dummy */ | 2652 | /* a dummy */ |
2653 | (void)buffer_offset; | ||
2654 | } | 2653 | } |
2655 | void audio_set_recording_options(struct audio_recording_options *options) | 2654 | void audio_set_recording_options(struct audio_recording_options *options) |
2656 | { | 2655 | { |
diff --git a/apps/talk.c b/apps/talk.c index 0211bcc1f8..f32e1b6e0b 100644 --- a/apps/talk.c +++ b/apps/talk.c | |||
@@ -292,7 +292,7 @@ static void load_voicefile(bool probe, char* buf, size_t bufsize) | |||
292 | union voicebuf voicebuf; | 292 | union voicebuf voicebuf; |
293 | 293 | ||
294 | size_t load_size, alloc_size; | 294 | size_t load_size, alloc_size; |
295 | int got_size; | 295 | ssize_t got_size; |
296 | #ifndef TALK_PARTIAL_LOAD | 296 | #ifndef TALK_PARTIAL_LOAD |
297 | size_t file_size; | 297 | size_t file_size; |
298 | #endif | 298 | #endif |
@@ -328,7 +328,7 @@ static void load_voicefile(bool probe, char* buf, size_t bufsize) | |||
328 | #endif | 328 | #endif |
329 | 329 | ||
330 | got_size = read(filehandle, voicebuf.buf, load_size); | 330 | got_size = read(filehandle, voicebuf.buf, load_size); |
331 | if (got_size != load_size /* failure */) | 331 | if (got_size != (ssize_t)load_size /* failure */) |
332 | goto load_err; | 332 | goto load_err; |
333 | 333 | ||
334 | alloc_size = load_size; | 334 | alloc_size = load_size; |
@@ -370,7 +370,7 @@ static void load_voicefile(bool probe, char* buf, size_t bufsize) | |||
370 | #endif | 370 | #endif |
371 | 371 | ||
372 | got_size = read(filehandle, &p_voicefile->index[0], load_size); | 372 | got_size = read(filehandle, &p_voicefile->index[0], load_size); |
373 | if (got_size != load_size) /* read error */ | 373 | if (got_size != (ssize_t)load_size) /* read error */ |
374 | goto load_err; | 374 | goto load_err; |
375 | 375 | ||
376 | alloc_size += load_size; | 376 | alloc_size += load_size; |