* tc-h8300.c: If OBJ_ELF, include elf/h8.h, and define
[binutils-gdb.git] / libiberty / lbasename.c
index 7f870497c4fbe76e6644f0675dec0b5052763612..b37316259d2c539601ba85bc50b6c1c1dce6b3e7 100644 (file)
@@ -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;
 }