summaryrefslogtreecommitdiff
path: root/libiberty
diff options
context:
space:
mode:
authorkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>2004-01-15 16:28:04 +0000
committerkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>2004-01-15 16:28:04 +0000
commit37350d39ae875b3c57b36377886359fe4908b06e (patch)
tree21b7ce639c4f2b41b324771bac306d3a1a020a0a /libiberty
parent9112298e536371b30cf80a35768797c17f53d1bb (diff)
downloadgcc-37350d39ae875b3c57b36377886359fe4908b06e.tar.gz
* strdup.c (strdup): Constify the argument.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@75929 138bc75d-0d04-0410-961f-82ee72b054a4
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);