commit b58135e3e2bca4ff4f12efc08401329ead94d3bd
parent 8033e76e6a6ac3d193a8ed90982ecdcbaaeff282
Author: Jonathan Boeing <jonathan.n.boeing@gmail.com>
Date: Fri, 19 Mar 2021 18:37:41 +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);
}
}