forked from len0rd/rockbox
Fix checksum issues
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17842 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
90b616913b
commit
bcf9b5dfa6
2 changed files with 4 additions and 4 deletions
|
@ -193,10 +193,10 @@ static void print_usage(void)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
static unsigned int checksum(FILE *file)
|
static int checksum(FILE *file)
|
||||||
{
|
{
|
||||||
int oldpos = ftell(file);
|
int oldpos = ftell(file);
|
||||||
unsigned int ret, i, filesize = _filesize(file)-0x40;
|
int ret=0, i, filesize = _filesize(file)-0x40;
|
||||||
unsigned char *buf;
|
unsigned char *buf;
|
||||||
|
|
||||||
buf = (unsigned char*)malloc(filesize);
|
buf = (unsigned char*)malloc(filesize);
|
||||||
|
|
|
@ -52,10 +52,10 @@ static void print_usage(void)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
static unsigned int checksum(FILE *file)
|
static int checksum(FILE *file)
|
||||||
{
|
{
|
||||||
int oldpos = ftell(file);
|
int oldpos = ftell(file);
|
||||||
unsigned int ret, i, filesize = _filesize(file)-0x40;
|
int ret=0, i, filesize = _filesize(file)-0x40;
|
||||||
unsigned char *buf;
|
unsigned char *buf;
|
||||||
|
|
||||||
buf = (unsigned char*)malloc(filesize);
|
buf = (unsigned char*)malloc(filesize);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue