s/basename/lbasename/ clean up consequences of assuming lbasename()

returns const char *.
This commit is contained in:
Andrew Cagney
2001-06-13 18:30:07 +00:00
parent 2bc0a1288f
commit 31889e007b
3 changed files with 20 additions and 9 deletions

View File

@ -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);
}