From: Andrew Cagney Date: Tue, 12 Nov 2002 20:26:05 +0000 (+0000) Subject: 2002-11-12 Andrew Cagney X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=82c0260ec6f9752dbfdf30154e0eeca706f0d5bd;p=binutils-gdb.git 2002-11-12 Andrew Cagney * utils.c (gdb_realpath): Make rp a constant pointer. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 55a1134e3d5..2299e6418ff 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2002-11-12 Andrew Cagney + + * utils.c (gdb_realpath): Make rp a constant pointer. + 2002-11-12 Andrew Cagney * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with diff --git a/gdb/utils.c b/gdb/utils.c index b2a1d1810b4..62e4020eb32 100644 --- a/gdb/utils.c +++ b/gdb/utils.c @@ -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);