aboutsummaryrefslogtreecommitdiff
path: root/libiberty
diff options
context:
space:
mode:
authorKazu Hirata <kazu@cs.umass.edu>2004-01-15 16:28:04 +0000
committerKazu Hirata <kazu@gcc.gnu.org>2004-01-15 16:28:04 +0000
commit4e394293bf0279f3ef28e2747acc1d97b2d2dcb6 (patch)
tree21b7ce639c4f2b41b324771bac306d3a1a020a0a /libiberty
parentfaa5faee49611c1a13172ef4aa67a62c41229ee5 (diff)
downloadgcc-4e394293bf0279f3ef28e2747acc1d97b2d2dcb6.zip
gcc-4e394293bf0279f3ef28e2747acc1d97b2d2dcb6.tar.gz
gcc-4e394293bf0279f3ef28e2747acc1d97b2d2dcb6.tar.bz2
* strdup.c (strdup): Constify the argument.
From-SVN: r75929
Diffstat (limited to 'libiberty')
-rw-r--r--libiberty/ChangeLog4
-rw-r--r--libiberty/strdup.c2
2 files changed, 5 insertions, 1 deletions
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 <kazu@cs.umass.edu>
+
+ * strdup.c (strdup): Constify the argument.
+
2004-01-14 Loren J. Rittle <ljrittle@acm.org>
* 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);