diff options
author | Roland McGrath <roland@gnu.org> | 1996-06-11 21:33:17 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1996-06-11 21:33:17 +0000 |
commit | d8c7ef98c193aa032327efcb7cab081da4025908 (patch) | |
tree | e628cc26cb2a392cf71814d5ed57424c241f01cf /string | |
parent | 852fc4b91e0c657e02c7d15bc24fbbae066ccae3 (diff) | |
download | glibc-d8c7ef98c193aa032327efcb7cab081da4025908.zip glibc-d8c7ef98c193aa032327efcb7cab081da4025908.tar.gz glibc-d8c7ef98c193aa032327efcb7cab081da4025908.tar.bz2 |
* 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')
-rw-r--r-- | string/basename.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/string/basename.c b/string/basename.c index 95bc003..57a5954 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; } |