2002-11-12 Andrew Cagney <ac131313@redhat.com>

* utils.c (gdb_realpath): Make rp a constant pointer.
This commit is contained in:
Andrew Cagney 2002-11-12 20:26:05 +00:00
parent 70d358198f
commit 82c0260ec6
2 changed files with 5 additions and 1 deletions

View 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

View 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);