From: Andrew Cagney Date: Sat, 6 Apr 2002 18:28:20 +0000 (+0000) Subject: * symtab.c (lookup_symtab): Remove ``const'' from ``rp'' X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=25f1b00810427752a10456206dc0c5289f997479;p=binutils-gdb.git * symtab.c (lookup_symtab): Remove ``const'' from ``rp'' declaration. Fix -Werror. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 59c7883fdac..fc0ad95c584 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2002-04-06 Andrew Cagney + + * symtab.c (lookup_symtab): Remove ``const'' from ``rp'' + declaration. Fix -Werror. + 2002-04-05 Daniel Jacobowitz * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap. diff --git a/gdb/symtab.c b/gdb/symtab.c index 05f777b4516..3a4286720e1 100644 --- a/gdb/symtab.c +++ b/gdb/symtab.c @@ -181,7 +181,7 @@ got_symtab: if (real_path != NULL) { - const char *rp = gdb_realpath (symtab_to_filename (s)); + char *rp = gdb_realpath (symtab_to_filename (s)); make_cleanup (xfree, rp); if (FILENAME_CMP (real_path, rp) == 0) {