diff options
author | Andrew Cagney <cagney@redhat.com> | 2001-08-10 23:46:17 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2001-08-10 23:46:17 +0000 |
commit | 3ea71002e4722647f3fb74bd2834e4126b7bf943 (patch) | |
tree | 7bd31572030498595e78e35b8d5b45c9e617fe67 /libiberty/lbasename.c | |
parent | 1297a2f020b41485135f3e58100d689799785ee5 (diff) | |
download | gdb-3ea71002e4722647f3fb74bd2834e4126b7bf943.zip gdb-3ea71002e4722647f3fb74bd2834e4126b7bf943.tar.gz gdb-3ea71002e4722647f3fb74bd2834e4126b7bf943.tar.bz2 |
(lbasename): Change function declaration to return a const char pointer.
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 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; } |