From: DJ Delorie Date: Thu, 15 Jan 2004 16:34:19 +0000 (+0000) Subject: merge from gcc X-Git-Tag: cagney_bigcore-20040122-branchpoint~108 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=211333f61aa37b4212c09f877d2ffcf7ced3e2e8;p=external%2Fbinutils.git merge from gcc --- diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog index b085add..30295c2 100644 --- a/libiberty/ChangeLog +++ b/libiberty/ChangeLog @@ -1,3 +1,7 @@ +2004-01-15 Kazu Hirata + + * strdup.c (strdup): Constify the argument. + 2004-01-14 Loren J. Rittle * Makefile.in (distclean): Remove config.cache. 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);