Commit 9a5b7454 by 凌振

fread函数添加接收参数,以免编译警告

parent afba23ea
...@@ -34,7 +34,7 @@ int main(int argc, char *argv[]){ ...@@ -34,7 +34,7 @@ int main(int argc, char *argv[]){
size_t file_len = ftell(fp); size_t file_len = ftell(fp);
uint8_t *tmp = (uint8_t*)malloc(sizeof(uint8_t) * file_len); uint8_t *tmp = (uint8_t*)malloc(sizeof(uint8_t) * file_len);
fseek(fp, 0, SEEK_SET); fseek(fp, 0, SEEK_SET);
fread(tmp, file_len, sizeof(uint8_t), fp); size_t bytes_read = fread(tmp, file_len, sizeof(uint8_t), fp);
fclose(fp); fclose(fp);
test_func(tmp, file_len); test_func(tmp, file_len);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment