build system: fix compiler warnings

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko committed 2019-01-06 20:12:16 +01:00
1 parent 2d9e097963
commit 4bdc914ff9
5 files changed
+13 -7

No files matched your search

+2 -1
View File
@@ -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))