From 110429f3f172630ba5a9a089a3cee1969f8d8dcb Mon Sep 17 00:00:00 2001 From: Michael Frysinger Date: Tue, 13 Apr 2010 20:28:19 +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 --- include/gdb/remote-sim.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/gdb/remote-sim.h') diff --git a/include/gdb/remote-sim.h b/include/gdb/remote-sim.h index cfb1c1141..37f029ad7 100644 --- a/include/gdb/remote-sim.h +++ b/include/gdb/remote-sim.h @@ -175,7 +175,7 @@ int sim_read PARAMS ((SIM_DESC sd, SIM_ADDR mem, unsigned char *buf, int length) memory. Store bytes starting at virtual address MEM. Result is number of bytes write, or zero if error. */ -int sim_write PARAMS ((SIM_DESC sd, SIM_ADDR mem, unsigned char *buf, int length)); +int sim_write PARAMS ((SIM_DESC sd, SIM_ADDR mem, const unsigned char *buf, int length)); /* Fetch register REGNO storing its raw (target endian) value in the -- cgit v1.2.3