summaryrefslogtreecommitdiff
path: root/src/crc_util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/crc_util.c')
-rw-r--r--src/crc_util.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/crc_util.c b/src/crc_util.c
index 2b99d11..bd59941 100644
--- a/src/crc_util.c
+++ b/src/crc_util.c
@@ -4,8 +4,8 @@
const long png_signature[8] = { 0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a };
-int check_header_length(unsigned char *addr, long offset) {
- unsigned int res = 0;
+unsigned long check_header_length(unsigned char *addr, long offset) {
+ unsigned long res = 0;
for( int i = 0; i < 4; i++ ) {
res |= addr[offset+i];
if (i < 3) {
@@ -71,7 +71,7 @@ int create_cc_file(unsigned char *addr, unsigned long file_length) {
}
unsigned char* file_to_char_array(FILE *in_file, size_t* size) {
- unsigned int c;
+ unsigned long c;
unsigned long file_data_cap = 8;
unsigned char* file_data = calloc(file_data_cap, sizeof(unsigned char));