[gimp] libgimpbase: Cast fd to FILE* before calling fileno
- From: Jehan Pagès <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] libgimpbase: Cast fd to FILE* before calling fileno
- Date: Thu, 15 Feb 2018 20:35:26 +0000 (UTC)
commit 7b6756af8eaf6293d3fbe105cd13b6015188a084
Author: Ting-Wei Lan <lantw src gnome org>
Date: Fri Feb 16 03:37:21 2018 +0800
libgimpbase: Cast fd to FILE* before calling fileno
It is required if the system implements fileno as a macro doing direct
struct member access.
https://bugzilla.gnome.org/show_bug.cgi?id=793494
libgimpbase/gimputils.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libgimpbase/gimputils.c b/libgimpbase/gimputils.c
index 77a5312..b68c51a 100644
--- a/libgimpbase/gimputils.c
+++ b/libgimpbase/gimputils.c
@@ -1240,7 +1240,7 @@ gimp_print_stack_trace (const gchar *prog_name,
* In some cases, this is necessary, especially during
* segfault-type crashes.
*/
- backtrace_symbols_fd (bt_buf, n_symbols, fileno (fd));
+ backtrace_symbols_fd (bt_buf, n_symbols, fileno ((FILE *) fd));
}
stack_printed = (n_symbols > 0);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]