diff options
author | Mike Frysinger <vapier@gentoo.org> | 2010-04-14 07:38:06 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2010-04-14 07:38:06 +0000 |
commit | 5558e7e691534636afa28f6bf68bfd83530d8054 (patch) | |
tree | 4f830ca8baba1d6598b383d6f82566ef12493cfe /sim/rx | |
parent | e1caee70eebe9b2aad731f87a94237568d6fa9ac (diff) | |
download | ppe42-binutils-5558e7e691534636afa28f6bf68bfd83530d8054.tar.gz ppe42-binutils-5558e7e691534636afa28f6bf68bfd83530d8054.zip |
sim: constify sim_write source buffer (part 2)
As pointed out by Sandra Loosemore, a bunch of targets define sim_write
themselves instead of using the common/ code. So constify them too.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'sim/rx')
-rw-r--r-- | sim/rx/ChangeLog | 4 | ||||
-rw-r--r-- | sim/rx/gdb-if.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/sim/rx/ChangeLog b/sim/rx/ChangeLog index c1a2675af5..5f5ee20a95 100644 --- a/sim/rx/ChangeLog +++ b/sim/rx/ChangeLog @@ -1,3 +1,7 @@ +2010-04-14 Mike Frysinger <vapier@gentoo.org> + + * gdb-if.c (sim_write): Add const to buf arg. + 2010-01-30 Masaki Muranaka <monaka@monami-software.com> * configure.in: Check if the host has getopt.h. diff --git a/sim/rx/gdb-if.c b/sim/rx/gdb-if.c index d5a84d75d0..873817fb1a 100644 --- a/sim/rx/gdb-if.c +++ b/sim/rx/gdb-if.c @@ -245,7 +245,7 @@ sim_read (SIM_DESC sd, SIM_ADDR mem, unsigned char *buf, int length) } int -sim_write (SIM_DESC sd, SIM_ADDR mem, unsigned char *buf, int length) +sim_write (SIM_DESC sd, SIM_ADDR mem, const unsigned char *buf, int length) { int i; |