Constify 'la_name' in struct language_defn
authorYao Qi <yao@codesourcery.com>
Sat, 26 Oct 2013 07:37:15 +0000 (15:37 +0800)
committerYao Qi <yao@codesourcery.com>
Thu, 7 Nov 2013 07:06:50 +0000 (15:06 +0800)
commit27cd387b7c3e45685db2f0dae4e9188f562cb7f0
tree09823eb45e41bce3370c7367f328c290c3dcb8db
parent01e48c0ce157d73db98d73e39e4b2d7c63d0ccdd
Constify 'la_name' in struct language_defn

Hi,
When I add another name of language, I find field 'la_name' can be
'const char *'.  This patch is to constify it.

gdb:

2013-11-07  Yao Qi  <yao@codesourcery.com>

* language.c (language_str): Return const char *.
(add_language): Add const to 'language_names'
* language.h (struct language_defn) <la_name>: Add const.
(language_str: Update declaration.
gdb/ChangeLog
gdb/language.c
gdb/language.h