From baf20f7627811d7bd96806ee5ff756899159fd70 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Tue, 10 Nov 2020 15:46:17 -0700 Subject: Make internalvar_name return a const char * This changes internalvar_name to return a const char *. gdb/ChangeLog 2020-11-10 Tom Tromey * value.h (internalvar_name): Update. * value.c (internalvar_name): Make return type const. --- gdb/value.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/value.c') diff --git a/gdb/value.c b/gdb/value.c index 7db3d3e..c9907fa 100644 --- a/gdb/value.c +++ b/gdb/value.c @@ -2379,7 +2379,7 @@ clear_internalvar (struct internalvar *var) var->kind = INTERNALVAR_VOID; } -char * +const char * internalvar_name (const struct internalvar *var) { return var->name; -- cgit v1.1