summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2018-09-21 14:27:12 -0400
committerSolomon Peachy <pizza@shaftnet.org>2018-09-28 11:53:15 -0400
commit3e209f34e4713a7fc26db74ad592d99b640db1bc (patch)
tree4dfb4df9b601dac422aed0070e6bc8382fdf5d2b /tools
parente18425197e41cc2ecdc475cbd9d18ce36cb1b6e4 (diff)
downloadrockbox-3e209f34e4713a7fc26db74ad592d99b640db1bc.tar.gz
rockbox-3e209f34e4713a7fc26db74ad592d99b640db1bc.tar.bz2
rockbox-3e209f34e4713a7fc26db74ad592d99b640db1bc.zip
misc: Fix some assorted compiler warnings
Change-Id: Ibc4aac79e6fce92ad4414ed50122c2d4d6295f89
Diffstat (limited to 'tools')
-rw-r--r--tools/rbspeex/rbspeexdec.c2
-rw-r--r--tools/voicefont.c3
2 files changed, 3 insertions, 2 deletions
diff --git a/tools/rbspeex/rbspeexdec.c b/tools/rbspeex/rbspeexdec.c
index 14ee971697..3cf65f0331 100644
--- a/tools/rbspeex/rbspeexdec.c
+++ b/tools/rbspeex/rbspeexdec.c
@@ -70,7 +70,7 @@ int main(int argc, char **argv)
insize = ftell(fin);
fseek(fin, 0, SEEK_SET);
indata = malloc(insize);
- fread(indata, 1, insize, fin);
+ insize = fread(indata, 1, insize, fin);
fclose(fin);
/* fill in wav header */
diff --git a/tools/voicefont.c b/tools/voicefont.c
index 4d1363b1bc..f4318b3b26 100644
--- a/tools/voicefont.c
+++ b/tools/voicefont.c
@@ -103,7 +103,8 @@ int voicefont(FILE* voicefontids,int targetnum,char* filedir, FILE* output, unsi
memset(voiceonly, 0, sizeof(voiceonly));
while (!feof(voicefontids))
{
- fgets(line, sizeof(line), voicefontids);
+ if (!fgets(line, sizeof(line), voicefontids))
+ break;
if (line[0] == '#') /* comment */
continue;