From d8c7ef98c193aa032327efcb7cab081da4025908 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Tue, 11 Jun 1996 21:33:17 +0000 Subject: * 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. --- string/basename.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'string/basename.c') 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; } -- cgit v1.2.3