summaryrefslogtreecommitdiff
path: root/libiberty
diff options
context:
space:
mode:
authorDJ Delorie <dj@delorie.com>2004-01-15 16:34:19 +0000
committerDJ Delorie <dj@delorie.com>2004-01-15 16:34:19 +0000
commita58024ba9e6458ba1a65f2738a0cc7026b4d1de8 (patch)
treeabfbe3e0876a6ab67f02a6993c2e78e21d794e26 /libiberty
parent043783c7029936d66f290a7483d37b1b87510389 (diff)
downloadgdb-a58024ba9e6458ba1a65f2738a0cc7026b4d1de8.tar.gz
merge from gcc
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 b085addcfb1..30295c21d3e 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 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);