diff options
author | Tom Tromey <tom@tromey.com> | 2017-09-10 14:29:22 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2017-09-11 15:46:13 -0600 |
commit | 2039bd9f0ce667f3f0ee99c18e25de1ea18a2288 (patch) | |
tree | 9756ddf7befc8f9b6b32a25ac4105a0a18fb41a8 /gdb/language.c | |
parent | f1735a53a63040cc4b4a735bf18a3f20d308e519 (diff) | |
download | binutils-2039bd9f0ce667f3f0ee99c18e25de1ea18a2288.zip binutils-2039bd9f0ce667f3f0ee99c18e25de1ea18a2288.tar.gz binutils-2039bd9f0ce667f3f0ee99c18e25de1ea18a2288.tar.bz2 |
Constify language_enum
Change language_enum to take a const argument.
ChangeLog
2017-09-11 Tom Tromey <tom@tromey.com>
* language.h (language_enum): Make argument const.
* language.c (language_enum): Make argument const.
Diffstat (limited to 'gdb/language.c')
-rw-r--r-- | gdb/language.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/language.c b/gdb/language.c index 7f870d8..e92c3c5 100644 --- a/gdb/language.c +++ b/gdb/language.c @@ -478,7 +478,7 @@ range_error (const char *string,...) /* Return the language enum for a given language string. */ enum language -language_enum (char *str) +language_enum (const char *str) { for (const auto &lang : languages) if (strcmp (lang->la_name, str) == 0) |