forked from len0rd/rockbox
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
This commit is contained in:
parent
2d5e6e1a87
commit
7a8d67f050
2 changed files with 4 additions and 2 deletions
|
|
@ -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]);
|
||||
|
|
|
|||
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue