From 91f8721328eaab19d0613f6b5377849fe252c9c0 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Fri, 4 Dec 2020 08:15:14 -0700 Subject: Constify value_internal_function_name I noticed that value_internal_function_name should have a const return type. This patch makes this change. gdb/ChangeLog 2020-12-04 Tom Tromey * value.c (value_internal_function_name): Make return type const. * value.h (value_internal_function_name): Make return type const. --- gdb/value.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/value.h') diff --git a/gdb/value.h b/gdb/value.h index 2bd1999d..d026c8e 100644 --- a/gdb/value.h +++ b/gdb/value.h @@ -1198,7 +1198,7 @@ struct value *call_internal_function (struct gdbarch *gdbarch, struct value *function, int argc, struct value **argv); -char *value_internal_function_name (struct value *); +const char *value_internal_function_name (struct value *); /* Build a value wrapping and representing WORKER. The value takes ownership of the xmethod_worker object. */ -- cgit v1.1