From ed60d3edd51f6c33fb0f3f09400094a1b1c2ceb2 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Wed, 26 Oct 2022 22:42:10 +0545 Subject: sim: constify various integer readers These functions only read from memory, so mark the pointer as const. --- sim/rl78/gdb-if.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sim/rl78/gdb-if.c') 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; -- cgit v1.1