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.h | |
parent | f1735a53a63040cc4b4a735bf18a3f20d308e519 (diff) | |
download | gdb-2039bd9f0ce667f3f0ee99c18e25de1ea18a2288.zip gdb-2039bd9f0ce667f3f0ee99c18e25de1ea18a2288.tar.gz gdb-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.h')
-rw-r--r-- | gdb/language.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/language.h b/gdb/language.h index 57e48bd..d4ca900 100644 --- a/gdb/language.h +++ b/gdb/language.h @@ -562,7 +562,7 @@ extern int value_true (struct value *); /* Misc: The string representing a particular enum language. */ -extern enum language language_enum (char *str); +extern enum language language_enum (const char *str); extern const struct language_defn *language_def (enum language); |