summaryrefslogtreecommitdiff
path: root/libiberty/strdup.c
diff options
context:
space:
mode:
Diffstat (limited to 'libiberty/strdup.c')
-rw-r--r--libiberty/strdup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libiberty/strdup.c b/libiberty/strdup.c
index 071a4a401af..a3f17d3bcb1 100644
--- a/libiberty/strdup.c
+++ b/libiberty/strdup.c
@@ -22,7 +22,7 @@ extern PTR memcpy PARAMS ((PTR, const PTR, size_t));
char *
strdup(s)
- char *s;
+ const char *s;
{
size_t len = strlen (s) + 1;
char *result = (char*) malloc (len);