aboutsummaryrefslogtreecommitdiff
path: root/gdb/utils.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2002-11-12 20:26:05 +0000
committerAndrew Cagney <cagney@redhat.com>2002-11-12 20:26:05 +0000
commit82c0260ec6f9752dbfdf30154e0eeca706f0d5bd (patch)
treeca37ee219b06827aa6bfa68e1b13562b0fae1d72 /gdb/utils.c
parent70d358198ff91ea7401b66393952d28a6d7c2466 (diff)
downloadgdb-82c0260ec6f9752dbfdf30154e0eeca706f0d5bd.zip
gdb-82c0260ec6f9752dbfdf30154e0eeca706f0d5bd.tar.gz
gdb-82c0260ec6f9752dbfdf30154e0eeca706f0d5bd.tar.bz2
2002-11-12 Andrew Cagney <ac131313@redhat.com>
* utils.c (gdb_realpath): Make rp a constant pointer.
Diffstat (limited to 'gdb/utils.c')
-rw-r--r--gdb/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/utils.c b/gdb/utils.c
index b2a1d18..62e4020 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);