Commit 54899a87 authored by Kristof Szabados's avatar Kristof Szabados
Browse files

should be size_t


Signed-off-by: Kristof Szabados's avatarKristof Szabados <Kristof.Szabados@ericsson.com>
parent e3850fee
...@@ -91,8 +91,8 @@ static boolean update_file(const char *file_name, FILE *fp, size_t skip_lines) ...@@ -91,8 +91,8 @@ static boolean update_file(const char *file_name, FILE *fp, size_t skip_lines)
/* compare the rest of the files */ /* compare the rest of the files */
for ( ; ; ) { for ( ; ; ) {
char buf1[BUFSIZE], buf2[BUFSIZE]; char buf1[BUFSIZE], buf2[BUFSIZE];
int len1 = fread(buf1, 1, BUFSIZE, fp); size_t len1 = fread(buf1, 1, BUFSIZE, fp);
int len2 = fread(buf2, 1, BUFSIZE, target); size_t len2 = fread(buf2, 1, BUFSIZE, target);
if ((len1 != len2) || memcmp(buf1, buf2, len1)) { if ((len1 != len2) || memcmp(buf1, buf2, len1)) {
files_differ = TRUE; files_differ = TRUE;
break; break;
......
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