[Commits] [SCM] claws branch, master, updated. 3.17.8-36-gb58135e3e
thorsten at claws-mail.org
thorsten at claws-mail.org
Fri Mar 19 18:38:23 CET 2021
The branch, master has been updated
via b58135e3e2bca4ff4f12efc08401329ead94d3bd (commit)
from 8033e76e6a6ac3d193a8ed90982ecdcbaaeff282 (commit)
Summary of changes:
src/quote_fmt_parse.y | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
- Log -----------------------------------------------------------------
commit b58135e3e2bca4ff4f12efc08401329ead94d3bd
Author: Jonathan Boeing <jonathan.n.boeing at gmail.com>
Date: Fri Mar 19 18:37:41 2021 +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)
diff --git a/src/quote_fmt_parse.y b/src/quote_fmt_parse.y
index a7bed9081..d8226feae 100644
--- 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);
}
}
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list