constify i386-sol2-tdep.c and machoread.c
authorPedro Alves <palves@redhat.com>
Mon, 9 Mar 2015 11:58:23 +0000 (11:58 +0000)
committerYao Qi <yao.qi@linaro.org>
Fri, 20 Mar 2015 17:39:29 +0000 (17:39 +0000)
commit2e7bf1d7210ee79b93ba9ce4462e22e71097a102
tree64359f543fb22dd0d5e4eb898cff8d5cf50f1b52
parent7a26bd4d83e5549137943de5f2c7b1ae90821093
constify i386-sol2-tdep.c and machoread.c

/home/pedro/gdb/mygit/src/gdb/i386-sol2-tdep.c: In function ‘const char* i386_sol2_static_transform_name(const char*)’:
/home/pedro/gdb/mygit/src/gdb/i386-sol2-tdep.c:93:29: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
       p = strrchr (name, '.');
                             ^
gdb:

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

* i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
inner block and make it const.
* machoread.c (get_archive_prefix_len): Make "lparen" const.
gdb/ChangeLog
gdb/i386-sol2-tdep.c
gdb/machoread.c