From cb1cc9c67ab42392913b61d630a3f72369e1c9ac Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 13 Apr 2010 20:28:20 +0000 Subject: sim: constify sim_write source buffer Most the sim write functions declare their source buffer const because they only ever read from it. The global sim_write() function does not follow this convention though which causes some warnings when trying to pass it const strings or buffers. Signed-off-by: Mike Frysinger --- sim/common/sim-hrw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sim/common/sim-hrw.c') diff --git a/sim/common/sim-hrw.c b/sim/common/sim-hrw.c index e76a196..cedae87 100644 --- a/sim/common/sim-hrw.c +++ b/sim/common/sim-hrw.c @@ -32,7 +32,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) { SIM_ASSERT (STATE_MAGIC (sd) == SIM_MAGIC_NUMBER); return sim_core_write_buffer (sd, NULL, write_map, -- cgit v1.1