summaryrefslogtreecommitdiffstats
path: root/utils/jz4740_tools
diff options
context:
space:
mode:
authorMaurus Cuelenaere <mcuelenaere@gmail.com>2008-06-28 17:31:47 +0000
committerMaurus Cuelenaere <mcuelenaere@gmail.com>2008-06-28 17:31:47 +0000
commitbcf9b5dfa6c575ac70271bdddf3ee7e5c1b0c9c6 (patch)
tree2880ef413d43ef04ae153575289822771fd866e0 /utils/jz4740_tools
parent90b616913b17e418987a0aa8eb8d8a050f619286 (diff)
downloadrockbox-bcf9b5dfa6c575ac70271bdddf3ee7e5c1b0c9c6.tar.gz
rockbox-bcf9b5dfa6c575ac70271bdddf3ee7e5c1b0c9c6.tar.bz2
rockbox-bcf9b5dfa6c575ac70271bdddf3ee7e5c1b0c9c6.zip
Fix checksum issues
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17842 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'utils/jz4740_tools')
-rwxr-xr-xutils/jz4740_tools/HXFmerge.c4
-rwxr-xr-xutils/jz4740_tools/HXFreplace.c4
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)
#endif
}
-static unsigned int checksum(FILE *file)
+static int checksum(FILE *file)
{
int oldpos = ftell(file);
- unsigned int ret, i, filesize = _filesize(file)-0x40;
+ int ret=0, i, filesize = _filesize(file)-0x40;
unsigned char *buf;
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)
#endif
}
-static unsigned int checksum(FILE *file)
+static int checksum(FILE *file)
{
int oldpos = ftell(file);
- unsigned int ret, i, filesize = _filesize(file)-0x40;
+ int ret=0, i, filesize = _filesize(file)-0x40;
unsigned char *buf;
buf = (unsigned char*)malloc(filesize);