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/erc32 | |
parent | e1caee70eebe9b2aad731f87a94237568d6fa9ac (diff) | |
download | gdb-5558e7e691534636afa28f6bf68bfd83530d8054.zip gdb-5558e7e691534636afa28f6bf68bfd83530d8054.tar.gz gdb-5558e7e691534636afa28f6bf68bfd83530d8054.tar.bz2 |
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/erc32')
-rw-r--r-- | sim/erc32/ChangeLog | 4 | ||||
-rw-r--r-- | sim/erc32/interf.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/sim/erc32/ChangeLog b/sim/erc32/ChangeLog index 107692f..d6f0caf 100644 --- a/sim/erc32/ChangeLog +++ b/sim/erc32/ChangeLog @@ -1,3 +1,7 @@ +2010-04-14 Mike Frysinger <vapier@gentoo.org> + + * interp.c (sim_write): Add const to buf arg. + 2010-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> * configure: Regenerate. diff --git a/sim/erc32/interf.c b/sim/erc32/interf.c index fe075e1..c7ffa99 100644 --- a/sim/erc32/interf.c +++ b/sim/erc32/interf.c @@ -351,7 +351,7 @@ int sim_write(sd, mem, buf, length) SIM_DESC sd; SIM_ADDR mem; - unsigned char *buf; + const unsigned char *buf; int length; { return (sis_memory_write(mem, buf, length)); |