diff options
author | Mike Frysinger <vapier@gentoo.org> | 2022-10-26 22:42:10 +0545 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2022-10-31 21:24:39 +0545 |
commit | ed60d3edd51f6c33fb0f3f09400094a1b1c2ceb2 (patch) | |
tree | 9fec7827dac0d17642f854d02c497a3b45692dfb /sim/rl78 | |
parent | ead2618501e8ba696bf29de635a9a5f6a1ba1b0e (diff) | |
download | fsf-binutils-gdb-ed60d3edd51f6c33fb0f3f09400094a1b1c2ceb2.zip fsf-binutils-gdb-ed60d3edd51f6c33fb0f3f09400094a1b1c2ceb2.tar.gz fsf-binutils-gdb-ed60d3edd51f6c33fb0f3f09400094a1b1c2ceb2.tar.bz2 |
sim: constify various integer readers
These functions only read from memory, so mark the pointer as const.
Diffstat (limited to 'sim/rl78')
-rw-r--r-- | sim/rl78/gdb-if.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sim/rl78/gdb-if.c b/sim/rl78/gdb-if.c index 8129c09..98bb0a4 100644 --- a/sim/rl78/gdb-if.c +++ b/sim/rl78/gdb-if.c @@ -237,7 +237,7 @@ sim_write (SIM_DESC sd, SIM_ADDR mem, const void *buf, int length) /* Read the LENGTH bytes at BUF as an little-endian value. */ static SI -get_le (unsigned char *buf, int length) +get_le (const unsigned char *buf, int length) { SI acc = 0; |