* symtab.c (lookup_symtab): Remove ``const'' from ``rp''
authorAndrew Cagney <cagney@redhat.com>
Sat, 6 Apr 2002 18:28:20 +0000 (18:28 +0000)
committerAndrew Cagney <cagney@redhat.com>
Sat, 6 Apr 2002 18:28:20 +0000 (18:28 +0000)
declaration.  Fix -Werror.

gdb/ChangeLog
gdb/symtab.c

index 59c7883fdac860fd0458d1407ee86633ed995c5f..fc0ad95c584d53bad03520249d47fe4fea810b86 100644 (file)
@@ -1,3 +1,8 @@
+2002-04-06  Andrew Cagney  <ac131313@redhat.com>
+
+       * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
+       declaration.  Fix -Werror.
+
 2002-04-05  Daniel Jacobowitz  <drow@mvista.com>
 
        * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
index 05f777b45160e3b50e31a993cf94a9d942771bca..3a4286720e1cf42508149700c08d712813372095 100644 (file)
@@ -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)
          {