diff options
Diffstat (limited to 'libiberty')
-rw-r--r-- | libiberty/ChangeLog | 5 | ||||
-rw-r--r-- | libiberty/lbasename.c | 6 |
2 files changed, 8 insertions, 3 deletions
diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog index c3fdb22..5c70d68 100644 --- a/libiberty/ChangeLog +++ b/libiberty/ChangeLog @@ -1,3 +1,8 @@ +2001-06-13 Andrew Cagney <ac131313@redhat.com> + + * lbasename.c (lbasename): Change function definition to return a + const char pointer. + 2001-08-07 Jason Merrill <jason_merrill@redhat.com> * cp-demangle.c (demangle_special_name): "GR" -> "reference temporary diff --git a/libiberty/lbasename.c b/libiberty/lbasename.c index 7f87049..b373162 100644 --- a/libiberty/lbasename.c +++ b/libiberty/lbasename.c @@ -23,7 +23,7 @@ NAME lbasename -- return pointer to last component of a pathname SYNOPSIS - char *lbasename (const char *name) + const char *lbasename (const char *name) DESCRIPTION Given a pointer to a string containing a typical pathname @@ -69,7 +69,7 @@ DESCRIPTION # endif #endif -char * +const char * lbasename (name) const char *name; { @@ -85,5 +85,5 @@ lbasename (name) if (IS_DIR_SEPARATOR (*name)) base = name + 1; - return (char *) base; + return base; } |