diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2015-10-26 15:05:50 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@ericsson.com> | 2015-10-26 15:05:50 -0400 |
commit | 1522597b057c321d813d3433bcd1e17c02a56557 (patch) | |
tree | 949faf721b05a8a94460b22e75f46d6a49577db8 /gdb/ChangeLog | |
parent | 7acd011bef4e461e9caef644f20379f41ddfd631 (diff) | |
download | gdb-1522597b057c321d813d3433bcd1e17c02a56557.zip gdb-1522597b057c321d813d3433bcd1e17c02a56557.tar.gz gdb-1522597b057c321d813d3433bcd1e17c02a56557.tar.bz2 |
guile: Simplify ioscm_make_gdb_stdio_port
As pointed out by Pedro, it's clearer to do it this way. We can trust
that scm_mode_bits won't try to modify our string, even though it takes
a non-const char *.
gdb/ChangeLog:
* guile/scm-ports.c (ioscm_make_gdb_stdio_port): Do not pass a
local char array to scm_mode_bits, use a cast instead.
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r-- | gdb/ChangeLog | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 5042001..8d08d81 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2015-10-26 Simon Marchi <simon.marchi@polymtl.ca> + + * guile/scm-ports.c (ioscm_make_gdb_stdio_port): Do not pass a + local char array to scm_mode_bits, use a cast instead. + 2015-10-26 Simon Marchi <simon.marchi@ericsson.com> * tui/tui-data.c (tui_alloc_content): Don't check xmalloc |