commit b17f4e5037fd85c405274b4e582d148cee3f5da0
parent 1b1e95a481add7d9714036d0b30ffd695c2ed4bb
Author: Jonathan Boeing <jonathan.n.boeing@gmail.com>
Date: Fri, 19 Mar 2021 18:39:22 +0100
Use fclose() on FILE instead of close()
FILE *file is opened with fdopen(), so close with fclose()
Fixes these compiler warnings:
warning: passing argument 1 of 'close' makes integer from pointer
without a cast [-Wint-conversion]
(remove from claws-win32-installer:
patches/claws-mail-*/04-fclose.patch)
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/quote_fmt_parse.y b/src/quote_fmt_parse.y
@@ -528,7 +528,7 @@ static void quote_fmt_insert_program_output(const gchar *progname)
while (fgets(buffer, sizeof(buffer), file)) {
INSERT(buffer);
}
- close(file);
+ fclose(file);
}
}
@@ -575,7 +575,7 @@ static void quote_fmt_attach_file_program_output(const gchar *progname)
strretchomp(buffer);
attachments = g_list_append(attachments, g_strdup(buffer));
}
- close(file);
+ fclose(file);
}
}