diff options
author | Andrew Cagney <ac131313@redhat.com> | 2001-08-10 23:45:11 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@gcc.gnu.org> | 2001-08-10 23:45:11 +0000 |
commit | 0ef5547d0e0cadae708bbbf03e1f1a70719e54fe (patch) | |
tree | f087d043cd094d8bc386c9f73b83dc0e9e9eb2ad /libiberty/lbasename.c | |
parent | db80cc1f2a8b0c77b05a79d6fba30bf3c7f055b2 (diff) |
(lbasename): Change function declaration to return a const char pointer.
From-SVN: r44782
Diffstat (limited to 'libiberty/lbasename.c')
-rw-r--r-- | libiberty/lbasename.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libiberty/lbasename.c b/libiberty/lbasename.c index 7f870497c4f..b37316259d2 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; } |