From: Kazu Hirata Date: Thu, 15 Jan 2004 16:28:04 +0000 (+0000) Subject: * strdup.c (strdup): Constify the argument. X-Git-Tag: releases/gcc-3.4.0~942 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4e394293bf0279f3ef28e2747acc1d97b2d2dcb6;p=thirdparty%2Fgcc.git * strdup.c (strdup): Constify the argument. From-SVN: r75929 --- diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog index b085addcfb16..30295c21d3e2 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 071a4a401af7..a3f17d3bcb1e 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);