forked from Imagelibrary/binutils-gdb
Constify value_string
If we constify value_cstring, we might as well constify this one. gdb/ChangeLog: * valops.c (value_string): Constify 'ptr' parameter. * value.h (value_string): Constify 'ptr' parameter.
This commit is contained in:
@@ -1649,7 +1649,7 @@ value_cstring (const char *ptr, ssize_t len, struct type *char_type)
|
||||
string may contain embedded null bytes. */
|
||||
|
||||
struct value *
|
||||
value_string (char *ptr, ssize_t len, struct type *char_type)
|
||||
value_string (const char *ptr, ssize_t len, struct type *char_type)
|
||||
{
|
||||
struct value *val;
|
||||
int lowbound = current_language->string_lower_bound;
|
||||
|
||||
Reference in New Issue
Block a user