From: Andrew Cagney Date: Sat, 6 Apr 2002 18:28:20 +0000 (+0000) Subject: * symtab.c (lookup_symtab): Remove ``const'' from ``rp'' X-Git-Tag: jimb-macro-020506-branchpoint~381 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=b04a1a46ff5dee24fe4e609f3f67fb191ba6ec63;p=pf3gnuchains%2Fpf3gnuchains4x.git * symtab.c (lookup_symtab): Remove ``const'' from ``rp'' declaration. Fix -Werror. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 59c7883fda..fc0ad95c58 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 05f777b451..3a4286720e 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) {