[Commits] [SCM] claws branch, gtk3, updated. 3.99.0-60-gb17f4e503
thorsten at claws-mail.org
thorsten at claws-mail.org
Fri Mar 19 18:43:51 CET 2021
The branch, gtk3 has been updated
via b17f4e5037fd85c405274b4e582d148cee3f5da0 (commit)
from 1b1e95a481add7d9714036d0b30ffd695c2ed4bb (commit)
Summary of changes:
src/quote_fmt_parse.y | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
- Log -----------------------------------------------------------------
commit b17f4e5037fd85c405274b4e582d148cee3f5da0
Author: Jonathan Boeing <jonathan.n.boeing at gmail.com>
Date: Fri Mar 19 18:39:22 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