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/m32c/gdb-if.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sim/m32c') diff --git a/sim/m32c/gdb-if.c b/sim/m32c/gdb-if.c index 8bb8e9b..802eae9 100644 --- a/sim/m32c/gdb-if.c +++ b/sim/m32c/gdb-if.c @@ -184,7 +184,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 DI -get_le (unsigned char *buf, int length) +get_le (const unsigned char *buf, int length) { DI acc = 0; while (--length >= 0) -- cgit v1.1