diff options
author | Jim Meyering <jim@meyering.net> | 1995-05-13 12:52:57 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1995-05-13 12:52:57 +0000 |
commit | 143415e6b8035b913e8f02d009b8fbde80db0925 (patch) | |
tree | eda147d87aea090c1cbcfd09940e497c041b6907 | |
parent | 99ce9e9832afce3278226874af6a2a961d52fbbe (diff) | |
download | coreutils-143415e6b8035b913e8f02d009b8fbde80db0925.tar.xz |
(basename): Make arg const.
-rw-r--r-- | lib/basename.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/basename.c b/lib/basename.c index 56a6c04dd..a47b200e5 100644 --- a/lib/basename.c +++ b/lib/basename.c @@ -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; } |