aboutsummaryrefslogtreecommitdiff
path: root/libiberty/strdup.c
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2004-01-15 16:34:19 +0000
committerDJ Delorie <dj@redhat.com>2004-01-15 16:34:19 +0000
commit211333f61aa37b4212c09f877d2ffcf7ced3e2e8 (patch)
treedd3339a422f11580b92fec2cc6e6969621522aa7 /libiberty/strdup.c
parente5c60db5249a7c0e09d18db164dc2b1bfa69377c (diff)
downloadgdb-211333f61aa37b4212c09f877d2ffcf7ced3e2e8.zip
gdb-211333f61aa37b4212c09f877d2ffcf7ced3e2e8.tar.gz
gdb-211333f61aa37b4212c09f877d2ffcf7ced3e2e8.tar.bz2
merge from gcc
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 071a4a4..a3f17d3 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);