Compiles w/o warnings with gcc

FossilOrigin-Name: 8aeb5208592d4c31a07b3eba10aa247483f9648fbaba38eb844cb02e074f31b9
This commit is contained in:
7u83@mail.ru
2018-03-25 08:35:53 +00:00
parent 847781bf7c
commit f136a0f401
16 changed files with 60 additions and 55 deletions

View File

@ -8,16 +8,16 @@ int cw_put_image_data(uint8_t *dst,FILE *infile)
int bytes = fread(dst+1,1,1024,infile);
if (ferror(infile)){
cw_put_byte(dst+0,5);
cw_set_byte(dst+0,5);
return 1;
}
if ( feof(infile)){
/* Last image block */
cw_put_byte(dst,2);
cw_set_byte(dst,2);
}
else{
cw_put_byte(dst,1);
cw_set_byte(dst,1);
}
return bytes+1;