Disassemblers shouldn't need writeable context, so make the disassemble_info::target_info field const.
Signed-off-by: Philippe Mathieu-Daudé <[email protected]> --- include/disas/dis-asm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/disas/dis-asm.h b/include/disas/dis-asm.h index 3b50ecfb540..911352703ea 100644 --- a/include/disas/dis-asm.h +++ b/include/disas/dis-asm.h @@ -397,7 +397,7 @@ typedef struct disassemble_info { bool show_opcodes; /* Field intended to be used by targets in any way they deem suitable. */ - void *target_info; + const void *target_info; /* Options for Capstone disassembly. */ int cap_arch; -- 2.52.0
