aboutsummaryrefslogtreecommitdiff
path: root/gdb/value.h
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2014-03-27 12:16:38 -0600
committerTom Tromey <tromey@redhat.com>2014-04-14 11:42:18 -0600
commitc848d64244912f9f411bec7b1c045bf14c72b61b (patch)
tree29d3b1adcd1c2714a8ebc220002c264c2d693846 /gdb/value.h
parent0626fc76d1b95c1c5b158a9b0be17791aa9078f8 (diff)
downloadbinutils-c848d64244912f9f411bec7b1c045bf14c72b61b.zip
binutils-c848d64244912f9f411bec7b1c045bf14c72b61b.tar.gz
binutils-c848d64244912f9f411bec7b1c045bf14c72b61b.tar.bz2
constify value_aggregate_elt
While working on another patch I realized that value_aggregate_elt's "name" parameter ought to be const. This patch implements this. 2014-04-14 Tom Tromey <tromey@redhat.com> * valops.c (value_aggregate_elt, value_struct_elt_for_reference) (value_namespace_elt, value_maybe_namespace_elt): Make "name" const. * value.h (value_aggregate_elt): Update.
Diffstat (limited to 'gdb/value.h')
-rw-r--r--gdb/value.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/value.h b/gdb/value.h
index f846669..9425a0e 100644
--- a/gdb/value.h
+++ b/gdb/value.h
@@ -676,7 +676,7 @@ extern struct value *value_struct_elt_bitpos (struct value **argp,
const char *err);
extern struct value *value_aggregate_elt (struct type *curtype,
- char *name,
+ const char *name,
struct type *expect_type,
int want_address,
enum noside noside);