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/m32c/mem.c | |
parent | e1caee70eebe9b2aad731f87a94237568d6fa9ac (diff) | |
download | binutils-gdb-5558e7e691534636afa28f6bf68bfd83530d8054.tar.gz |
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/m32c/mem.c')
-rw-r--r-- | sim/m32c/mem.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sim/m32c/mem.c b/sim/m32c/mem.c index c25b9637d7e..02604d59177 100644 --- a/sim/m32c/mem.c +++ b/sim/m32c/mem.c @@ -365,13 +365,13 @@ mem_put_si (int address, unsigned long value) } void -mem_put_blk (int address, void *bufptr, int nbytes) +mem_put_blk (int address, const void *bufptr, int nbytes) { S ("<="); if (enable_counting) mem_counters[1][1] += nbytes; while (nbytes--) - mem_put_byte (address++, *(unsigned char *) bufptr++); + mem_put_byte (address++, *(const unsigned char *) bufptr++); E (); } |