about summary refs log tree commit diff
path: root/string/basename.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1996-06-11 21:33:17 +0000
committerRoland McGrath <roland@gnu.org>1996-06-11 21:33:17 +0000
commitd8c7ef98c193aa032327efcb7cab081da4025908 (patch)
treee628cc26cb2a392cf71814d5ed57424c241f01cf /string/basename.c
parent852fc4b91e0c657e02c7d15bc24fbbae066ccae3 (diff)
downloadglibc-d8c7ef98c193aa032327efcb7cab081da4025908.tar.gz
glibc-d8c7ef98c193aa032327efcb7cab081da4025908.tar.xz
glibc-d8c7ef98c193aa032327efcb7cab081da4025908.zip
* string/basename.c (basename): Cast FILENAME to char * for return.
	* Makerules ($(libdir)/libc.so): Put $(rtld-installed) name between
	libc.so and libc.a in the deps.
Diffstat (limited to 'string/basename.c')
-rw-r--r--string/basename.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/string/basename.c b/string/basename.c
index 95bc003846..57a59542ca 100644
--- a/string/basename.c
+++ b/string/basename.c
@@ -23,5 +23,5 @@ char *
 basename (const char *filename)
 {
   char *p = strrchr (filename, '/');
-  return p ? p + 1 : filename;
+  return p ? p + 1 : (char *) filename;
 }