summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2008-10-06 06:45:41 +0000
committerJens Arnold <amiconn@rockbox.org>2008-10-06 06:45:41 +0000
commit7a8d67f0507df4100ffd0106564807cbe8eb4d23 (patch)
tree71ec3c80194e766e6f937e64e6452b1543a34f35
parent2d5e6e1a8792c71c765e2c8f6956cf71e6178b01 (diff)
Squash 2 warnings in each of (voicefont.c, wavtrim.c).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18720 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--tools/voicefont.c5
-rw-r--r--tools/wavtrim.c1
2 files changed, 4 insertions, 2 deletions
diff --git a/tools/voicefont.c b/tools/voicefont.c
index 9e5603e458..4da67fabed 100644
--- a/tools/voicefont.c
+++ b/tools/voicefont.c
@@ -217,6 +217,7 @@ int voicefont(FILE* voicefontids,int targetnum,char* filedir, FILE* output)
#ifndef RBUTIL
int main (int argc, char** argv)
{
+ FILE *ids, *output;
if (argc < 2)
{
@@ -228,14 +229,14 @@ int main (int argc, char** argv)
return -1;
}
- FILE* ids = fopen(argv[1], "r");
+ ids = fopen(argv[1], "r");
if (ids == NULL)
{
printf("Error opening language file %s\n", argv[1]);
return -2;
}
- FILE* output = fopen(argv[4], "wb");
+ output = fopen(argv[4], "wb");
if (output == NULL)
{
printf("Error opening output file %s\n", argv[4]);
diff --git a/tools/wavtrim.c b/tools/wavtrim.c
index 86fec7e256..b82f270c8d 100644
--- a/tools/wavtrim.c
+++ b/tools/wavtrim.c
@@ -130,6 +130,7 @@ int wavtrim(char * filename, int maxsilence ,char* errstring,int errsize)
}
datalen = Read32(pBuf+datapos-4);
+ skip_head = skip_tail = 0;
sps = Read32(pBuf + 24);
pad_head = sps * 10 / 1000; /* 10 ms */