1
0
Fork 0
forked from len0rd/rockbox

Fix remaining problems.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30311 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Thomas Martitz 2011-08-14 15:43:43 +00:00
parent 8a701e5488
commit b8fabfef84
2 changed files with 3 additions and 4 deletions

View file

@ -2650,7 +2650,6 @@ void audio_set_recording_gain(int left, int right, int type)
void audio_init_recording(void) void audio_init_recording(void)
{ {
/* a dummy */ /* a dummy */
(void)buffer_offset;
} }
void audio_set_recording_options(struct audio_recording_options *options) void audio_set_recording_options(struct audio_recording_options *options)
{ {

View file

@ -292,7 +292,7 @@ static void load_voicefile(bool probe, char* buf, size_t bufsize)
union voicebuf voicebuf; union voicebuf voicebuf;
size_t load_size, alloc_size; size_t load_size, alloc_size;
int got_size; ssize_t got_size;
#ifndef TALK_PARTIAL_LOAD #ifndef TALK_PARTIAL_LOAD
size_t file_size; size_t file_size;
#endif #endif
@ -328,7 +328,7 @@ static void load_voicefile(bool probe, char* buf, size_t bufsize)
#endif #endif
got_size = read(filehandle, voicebuf.buf, load_size); got_size = read(filehandle, voicebuf.buf, load_size);
if (got_size != load_size /* failure */) if (got_size != (ssize_t)load_size /* failure */)
goto load_err; goto load_err;
alloc_size = load_size; alloc_size = load_size;
@ -370,7 +370,7 @@ static void load_voicefile(bool probe, char* buf, size_t bufsize)
#endif #endif
got_size = read(filehandle, &p_voicefile->index[0], load_size); got_size = read(filehandle, &p_voicefile->index[0], load_size);
if (got_size != load_size) /* read error */ if (got_size != (ssize_t)load_size) /* read error */
goto load_err; goto load_err;
alloc_size += load_size; alloc_size += load_size;