summaryrefslogtreecommitdiff
path: root/gdb/psymtab.c
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2013-01-10 21:15:44 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2013-01-10 21:15:44 +0000
commit5133ffd6f80f9ca5890c4f6da3d1286568ecb333 (patch)
tree2557a434f45d8658f4462d2838f6f1115f40ce0b /gdb/psymtab.c
parent828f877196248a472f2cc588b0d31504882b20b4 (diff)
downloadgdb-5133ffd6f80f9ca5890c4f6da3d1286568ecb333.tar.gz
gdb/
Code cleanup. * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return type const char *. * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname const char *. * tui/tui-source.h (tui_source_is_displayed): Likewise.
Diffstat (limited to 'gdb/psymtab.c')
-rw-r--r--gdb/psymtab.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/psymtab.c b/gdb/psymtab.c
index acbdd6a8761..c6adb971e82 100644
--- a/gdb/psymtab.c
+++ b/gdb/psymtab.c
@@ -58,7 +58,7 @@ static struct partial_symbol *lookup_partial_symbol (struct objfile *,
const char *, int,
domain_enum);
-static char *psymtab_to_fullname (struct partial_symtab *ps);
+static const char *psymtab_to_fullname (struct partial_symtab *ps);
static struct partial_symbol *find_pc_sect_psymbol (struct objfile *,
struct partial_symtab *,
@@ -1174,7 +1174,7 @@ map_symbol_filenames_psymtab (struct objfile *objfile,
If this function fails to find the file that this partial_symtab represents,
NULL will be returned and ps->fullname will be set to NULL. */
-static char *
+static const char *
psymtab_to_fullname (struct partial_symtab *ps)
{
int r;