diff options
author | Pedro Alves <palves@redhat.com> | 2015-03-09 11:58:23 +0000 |
---|---|---|
committer | Yao Qi <yao.qi@linaro.org> | 2015-03-20 17:39:29 +0000 |
commit | 2e7bf1d7210ee79b93ba9ce4462e22e71097a102 (patch) | |
tree | 64359f543fb22dd0d5e4eb898cff8d5cf50f1b52 /gdb/machoread.c | |
parent | 7a26bd4d83e5549137943de5f2c7b1ae90821093 (diff) | |
download | gdb-2e7bf1d7210ee79b93ba9ce4462e22e71097a102.zip gdb-2e7bf1d7210ee79b93ba9ce4462e22e71097a102.tar.gz gdb-2e7bf1d7210ee79b93ba9ce4462e22e71097a102.tar.bz2 |
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.
Diffstat (limited to 'gdb/machoread.c')
-rw-r--r-- | gdb/machoread.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/machoread.c b/gdb/machoread.c index 831bbcb..675155e 100644 --- a/gdb/machoread.c +++ b/gdb/machoread.c @@ -343,7 +343,7 @@ macho_symtab_read (struct objfile *objfile, static int get_archive_prefix_len (const char *name) { - char *lparen; + const char *lparen; int name_len = strlen (name); if (name_len == 0 || name[name_len - 1] != ')') |