]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/nto-tdep.c
constify nto-tdep.c
authorPedro Alves <palves@redhat.com>
Mon, 9 Mar 2015 11:58:14 +0000 (11:58 +0000)
committerYao Qi <yao.qi@linaro.org>
Fri, 20 Mar 2015 17:39:03 +0000 (17:39 +0000)
commitc32ed3ef8084f209c8ce2e9e0fecc91560245373
tree53b62e5b54c3b5bd59cac488ec88afc42dde7b11
parenteef49a3d1a7e2ff70e142c7c7fd748f4625c05c9
constify nto-tdep.c

/home/pedro/gdb/mygit/src/gdb/nto-tdep.c: In function ‘int nto_find_and_open_solib(char*, unsigned int, char**)’:
/home/pedro/gdb/mygit/src/gdb/nto-tdep.c:111:14: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
       endian = gdbarch_byte_order (target_gdbarch ())
              ^
/home/pedro/gdb/mygit/src/gdb/nto-tdep.c: In function ‘void nto_init_solib_absolute_prefix()’:
/home/pedro/gdb/mygit/src/gdb/nto-tdep.c:170:14: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
       endian = gdbarch_byte_order (target_gdbarch ())
              ^

gdb

2015-03-20  Pedro Alves  <palves@redhat.com>

* nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
(nto_init_solib_absolute_prefix): Likewise.
gdb/ChangeLog
gdb/nto-tdep.c