forked from Imagelibrary/binutils-gdb
sim: constify sim_write source buffer
Most the sim write functions declare their source buffer const because they only ever read from it. The global sim_write() function does not follow this convention though which causes some warnings when trying to pass it const strings or buffers. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
@@ -63,7 +63,7 @@ SIM_RC sim_analyze_program (SIM_DESC sd, char *prog_name,
|
||||
This is still accommodated for backward compatibility reasons. */
|
||||
|
||||
typedef int sim_write_fn PARAMS ((SIM_DESC sd, SIM_ADDR mem,
|
||||
unsigned char *buf, int length));
|
||||
const unsigned char *buf, int length));
|
||||
struct bfd *sim_load_file (SIM_DESC sd, const char *myname,
|
||||
host_callback *callback, char *prog,
|
||||
struct bfd *prog_bfd, int verbose_p,
|
||||
|
||||
Reference in New Issue
Block a user