2002-11-12 Andrew Cagney <ac131313@redhat.com>
* utils.c (gdb_realpath): Make rp a constant pointer.
This commit is contained in:
parent
70d358198f
commit
82c0260ec6
2 changed files with 5 additions and 1 deletions
|
@ -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>
|
2002-11-12 Andrew Cagney <ac131313@redhat.com>
|
||||||
|
|
||||||
* utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
|
* utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
|
||||||
|
|
|
@ -2718,7 +2718,7 @@ gdb_realpath (const char *filename)
|
||||||
# define USE_REALPATH
|
# define USE_REALPATH
|
||||||
# endif
|
# endif
|
||||||
# if defined (USE_REALPATH)
|
# if defined (USE_REALPATH)
|
||||||
char *rp = realpath (filename, buf);
|
const char *rp = realpath (filename, buf);
|
||||||
if (rp == NULL)
|
if (rp == NULL)
|
||||||
rp = filename;
|
rp = filename;
|
||||||
return xstrdup (rp);
|
return xstrdup (rp);
|
||||||
|
|
Loading…
Reference in a new issue