summaryrefslogtreecommitdiff
path: root/src/string
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2018-09-11 14:02:58 -0400
committerRich Felker <dalias@aerifal.cx>2018-09-12 14:34:35 -0400
commit3fe595de83e398dbc3cdbe303cacaf8485c9ae08 (patch)
treee9c870791bf714111804adc815f50f3b0c395102 /src/string
parent49722a8ed4c8fd056ac8aebd6bec9d998b700f80 (diff)
downloadmusl-3fe595de83e398dbc3cdbe303cacaf8485c9ae08.tar.gz
remove or make static various unused __-prefixed symbols
Diffstat (limited to 'src/string')
-rw-r--r--src/string/strdup.c5
1 files changed, 1 insertions, 4 deletions
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 <stdlib.h>
#include <string.h>
-#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);