OSDN Git Service

* strdup.c (strdup): Constify the argument.
authorkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 15 Jan 2004 16:28:04 +0000 (16:28 +0000)
committerkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 15 Jan 2004 16:28:04 +0000 (16:28 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@75929 138bc75d-0d04-0410-961f-82ee72b054a4

libiberty/ChangeLog
libiberty/strdup.c

index b085add..30295c2 100644 (file)
@@ -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.
index 071a4a4..a3f17d3 100644 (file)
@@ -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);