2002-11-12 Andrew Cagney <ac131313@redhat.com>
authorAndrew Cagney <cagney@redhat.com>
Tue, 12 Nov 2002 20:26:05 +0000 (20:26 +0000)
committerAndrew Cagney <cagney@redhat.com>
Tue, 12 Nov 2002 20:26:05 +0000 (20:26 +0000)
* utils.c (gdb_realpath): Make rp a constant pointer.

gdb/ChangeLog
gdb/utils.c

index 55a1134e3d5d6e24c70e59680d35b17c45766c67..2299e6418fff9e942694d9f43f61147769c1199a 100644 (file)
@@ -1,3 +1,7 @@
+2002-11-12  Andrew Cagney  <ac131313@redhat.com>
+
+       * utils.c (gdb_realpath): Make rp a constant pointer.
+
 2002-11-12  Andrew Cagney  <ac131313@redhat.com>
 
        * utils.c (gdb_realpath): Rewrite.  Try, in order: realpath() with
index b2a1d1810b4cc7bdc5487b9479e4ed01cdfb90c2..62e4020eb32f3cdedd094fe594a564894894b450 100644 (file)
@@ -2718,7 +2718,7 @@ gdb_realpath (const char *filename)
 #  define USE_REALPATH
 # endif
 # if defined (USE_REALPATH)
-    char *rp = realpath (filename, buf);
+    const char *rp = realpath (filename, buf);
     if (rp == NULL)
       rp = filename;
     return xstrdup (rp);
This page took 0.0332 seconds and 4 git commands to generate.