From 82c0260ec6f9752dbfdf30154e0eeca706f0d5bd Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Tue, 12 Nov 2002 20:26:05 +0000 Subject: [PATCH] 2002-11-12 Andrew Cagney * utils.c (gdb_realpath): Make rp a constant pointer. --- gdb/ChangeLog | 4 ++++ gdb/utils.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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); -- 2.30.2