From 0ef5547d0e0cadae708bbbf03e1f1a70719e54fe Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Fri, 10 Aug 2001 23:45:11 +0000 Subject: (lbasename): Change function declaration to return a const char pointer. From-SVN: r44782 --- libiberty/lbasename.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libiberty/lbasename.c') 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; } -- cgit v1.1