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/talk.c | |
parent | 8a701e5488989944f120f0c37848de24fbeff455 (diff) |
Fix remaining problems.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30311 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/talk.c')
-rw-r--r-- | apps/talk.c | 6 |
1 files changed, 3 insertions, 3 deletions
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) union voicebuf voicebuf; size_t load_size, alloc_size; - int got_size; + ssize_t got_size; #ifndef TALK_PARTIAL_LOAD size_t file_size; #endif @@ -328,7 +328,7 @@ static void load_voicefile(bool probe, char* buf, size_t bufsize) #endif 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; alloc_size = load_size; @@ -370,7 +370,7 @@ static void load_voicefile(bool probe, char* buf, size_t bufsize) #endif 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; alloc_size += load_size; |