From 3fe595de83e398dbc3cdbe303cacaf8485c9ae08 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Tue, 11 Sep 2018 14:02:58 -0400 Subject: remove or make static various unused __-prefixed symbols --- src/string/strdup.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/string/strdup.c') diff --git a/src/string/strdup.c b/src/string/strdup.c index dd5f80c1..d4c27449 100644 --- a/src/string/strdup.c +++ b/src/string/strdup.c @@ -1,13 +1,10 @@ #include #include -#include "libc.h" -char *__strdup(const char *s) +char *strdup(const char *s) { size_t l = strlen(s); char *d = malloc(l+1); if (!d) return NULL; return memcpy(d, s, l+1); } - -weak_alias(__strdup, strdup); -- cgit 1.4.1