gdbscm_memory_port_write: use local variable to avoid adding casts
authorSimon Marchi <simon.marchi@polymtl.ca>
Mon, 26 Oct 2015 12:41:37 +0000 (08:41 -0400)
committerSimon Marchi <simon.marchi@polymtl.ca>
Mon, 26 Oct 2015 12:41:37 +0000 (08:41 -0400)
commite0dd41e9671fffc957c3d8f41adcd52274319f4f
tree2a1d110c1b68feb002af859418a0eb68a6c1c2a2
parent74ef968fbaab0bd52335314abdb3e0eb04020fb1
gdbscm_memory_port_write: use local variable to avoid adding casts

By having a local variable of type (const gdb_byte *), we can avoid adding
two casts.

gdb/ChangeLog:

* guile/scm-ports.c (gdbscm_memory_port_write): Declare new
"data" local variable and use it.
gdb/ChangeLog
gdb/guile/scm-ports.c