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/h8300/ChangeLog | 4 ++++ sim/h8300/compile.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'sim/h8300') diff --git a/sim/h8300/ChangeLog b/sim/h8300/ChangeLog index e12d291..adda60e 100644 --- a/sim/h8300/ChangeLog +++ b/sim/h8300/ChangeLog @@ -1,3 +1,7 @@ +2010-04-14 Mike Frysinger + + * compile.c (sim_write): Add const to buffer arg. + 2010-01-09 Ralf Wildenhues * configure: Regenerate. diff --git a/sim/h8300/compile.c b/sim/h8300/compile.c index 70394e6..44d60f6 100644 --- a/sim/h8300/compile.c +++ b/sim/h8300/compile.c @@ -4616,7 +4616,7 @@ sim_trace (SIM_DESC sd) } int -sim_write (SIM_DESC sd, SIM_ADDR addr, unsigned char *buffer, int size) +sim_write (SIM_DESC sd, SIM_ADDR addr, const unsigned char *buffer, int size) { int i; -- cgit v1.1