diff options
Diffstat (limited to 'utils/jz4740_tools/HXFreplace.c')
-rwxr-xr-x | utils/jz4740_tools/HXFreplace.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |