build system: fix compiler warnings
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
2d9e097963
commit
4bdc914ff9
5 changed files with 13 additions and 7 deletions
|
@ -131,7 +131,8 @@ int main(int argc, const char * argv [])
|
|||
is_same = 0;
|
||||
if ((fp_target = fopen(ptarget, "r")) != NULL)
|
||||
{
|
||||
fgets(old_line, buffer_size, fp_target);
|
||||
if (!fgets(old_line, buffer_size, fp_target))
|
||||
ERROR_EXIT(ptarget);
|
||||
if (fclose(fp_target) != 0)
|
||||
ERROR_EXIT(ptarget);
|
||||
if (!strcmp(line, old_line))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue