(basename): Make arg const.

This commit is contained in:
Jim Meyering 1995-05-13 12:52:57 +00:00
parent 99ce9e9832
commit 143415e6b8

View File

@ -32,10 +32,10 @@
char *
basename (name)
char *name;
const char *name;
{
char *base;
base = strrchr (name, '/');
return base ? base + 1 : name;
return base ? base + 1 : (char *) name;
}