diff options
author | Maurus Cuelenaere <mcuelenaere@gmail.com> | 2008-06-28 17:31:47 +0000 |
---|---|---|
committer | Maurus Cuelenaere <mcuelenaere@gmail.com> | 2008-06-28 17:31:47 +0000 |
commit | bcf9b5dfa6c575ac70271bdddf3ee7e5c1b0c9c6 (patch) | |
tree | 2880ef413d43ef04ae153575289822771fd866e0 | |
parent | 90b616913b17e418987a0aa8eb8d8a050f619286 (diff) | |
download | rockbox-bcf9b5dfa6c575ac70271bdddf3ee7e5c1b0c9c6.tar.gz rockbox-bcf9b5dfa6c575ac70271bdddf3ee7e5c1b0c9c6.zip |
Fix checksum issues
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17842 a1c6a512-1295-4272-9138-f99709370657
-rwxr-xr-x | utils/jz4740_tools/HXFmerge.c | 4 | ||||
-rwxr-xr-x | utils/jz4740_tools/HXFreplace.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/utils/jz4740_tools/HXFmerge.c b/utils/jz4740_tools/HXFmerge.c index 40c36e7bc7..f90d094fd9 100755 --- a/utils/jz4740_tools/HXFmerge.c +++ b/utils/jz4740_tools/HXFmerge.c | |||
@@ -193,10 +193,10 @@ static void print_usage(void) | |||
193 | #endif | 193 | #endif |
194 | } | 194 | } |
195 | 195 | ||
196 | static unsigned int checksum(FILE *file) | 196 | static int checksum(FILE *file) |
197 | { | 197 | { |
198 | int oldpos = ftell(file); | 198 | int oldpos = ftell(file); |
199 | unsigned int ret, i, filesize = _filesize(file)-0x40; | 199 | int ret=0, i, filesize = _filesize(file)-0x40; |
200 | unsigned char *buf; | 200 | unsigned char *buf; |
201 | 201 | ||
202 | buf = (unsigned char*)malloc(filesize); | 202 | buf = (unsigned char*)malloc(filesize); |
diff --git a/utils/jz4740_tools/HXFreplace.c b/utils/jz4740_tools/HXFreplace.c index a33a729a1c..fc97a3c1e8 100755 --- a/utils/jz4740_tools/HXFreplace.c +++ b/utils/jz4740_tools/HXFreplace.c | |||
@@ -52,10 +52,10 @@ static void print_usage(void) | |||
52 | #endif | 52 | #endif |
53 | } | 53 | } |
54 | 54 | ||
55 | static unsigned int checksum(FILE *file) | 55 | static int checksum(FILE *file) |
56 | { | 56 | { |
57 | int oldpos = ftell(file); | 57 | int oldpos = ftell(file); |
58 | unsigned int ret, i, filesize = _filesize(file)-0x40; | 58 | int ret=0, i, filesize = _filesize(file)-0x40; |
59 | unsigned char *buf; | 59 | unsigned char *buf; |
60 | 60 | ||
61 | buf = (unsigned char*)malloc(filesize); | 61 | buf = (unsigned char*)malloc(filesize); |