aboutsummaryrefslogtreecommitdiff
path: root/gdb/source.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2001-06-13 18:30:07 +0000
committerAndrew Cagney <cagney@redhat.com>2001-06-13 18:30:07 +0000
commit31889e007b0383eda46a0540aaae895c4e2cccb2 (patch)
tree21d21109d45da727dc571c524720cd354539427e /gdb/source.c
parent2bc0a1288fbbffa1cf4065846939204e0efd13e1 (diff)
downloadgdb-31889e007b0383eda46a0540aaae895c4e2cccb2.zip
gdb-31889e007b0383eda46a0540aaae895c4e2cccb2.tar.gz
gdb-31889e007b0383eda46a0540aaae895c4e2cccb2.tar.bz2
s/basename/lbasename/ clean up consequences of assuming lbasename()
returns const char *.
Diffstat (limited to 'gdb/source.c')
-rw-r--r--gdb/source.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/source.c b/gdb/source.c
index 8d705db..2895dd3 100644
--- a/gdb/source.c
+++ b/gdb/source.c
@@ -670,7 +670,7 @@ int
open_source_file (struct symtab *s)
{
char *path = source_path;
- char *p;
+ const char *p;
int result;
char *fullname;
@@ -710,7 +710,7 @@ open_source_file (struct symtab *s)
if (result < 0)
{
/* Didn't work. Try using just the basename. */
- p = basename (s->filename);
+ p = lbasename (s->filename);
if (p != s->filename)
result = openp (path, 0, p, OPEN_MODE, 0, &s->fullname);
}