From 5558e7e691534636afa28f6bf68bfd83530d8054 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Wed, 14 Apr 2010 07:38:06 +0000 Subject: 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 --- sim/rx/ChangeLog | 4 ++++ sim/rx/gdb-if.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'sim/rx') diff --git a/sim/rx/ChangeLog b/sim/rx/ChangeLog index c1a2675..5f5ee20 100644 --- a/sim/rx/ChangeLog +++ b/sim/rx/ChangeLog @@ -1,3 +1,7 @@ +2010-04-14 Mike Frysinger + + * gdb-if.c (sim_write): Add const to buf arg. + 2010-01-30 Masaki Muranaka * configure.in: Check if the host has getopt.h. diff --git a/sim/rx/gdb-if.c b/sim/rx/gdb-if.c index d5a84d7..873817f 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; -- cgit v1.1