guile: Simplify ioscm_make_gdb_stdio_port
authorSimon Marchi <simon.marchi@polymtl.ca>
Mon, 26 Oct 2015 19:05:50 +0000 (15:05 -0400)
committerSimon Marchi <simon.marchi@ericsson.com>
Mon, 26 Oct 2015 19:05:50 +0000 (15:05 -0400)
commit1522597b057c321d813d3433bcd1e17c02a56557
tree949faf721b05a8a94460b22e75f46d6a49577db8
parent7acd011bef4e461e9caef644f20379f41ddfd631
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.
gdb/ChangeLog
gdb/guile/scm-ports.c
This page took 0.025345 seconds and 4 git commands to generate.