From a47d73982f1ec285dd4d1b0d0d74c97bf279f629 Mon Sep 17 00:00:00 2001 From: DJ Delorie Date: Thu, 15 Jan 2004 16:34:19 +0000 Subject: [PATCH] merge from gcc --- libiberty/ChangeLog | 4 ++++ libiberty/strdup.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog index b085addcf..30295c21d 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 071a4a401..a3f17d3bc 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); -- 2.11.4.GIT