merge from gcc
This commit is contained in:
parent
e5c60db524
commit
211333f61a
2 changed files with 5 additions and 1 deletions
|
@ -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>
|
2004-01-14 Loren J. Rittle <ljrittle@acm.org>
|
||||||
|
|
||||||
* Makefile.in (distclean): Remove config.cache.
|
* Makefile.in (distclean): Remove config.cache.
|
||||||
|
|
|
@ -22,7 +22,7 @@ extern PTR memcpy PARAMS ((PTR, const PTR, size_t));
|
||||||
|
|
||||||
char *
|
char *
|
||||||
strdup(s)
|
strdup(s)
|
||||||
char *s;
|
const char *s;
|
||||||
{
|
{
|
||||||
size_t len = strlen (s) + 1;
|
size_t len = strlen (s) + 1;
|
||||||
char *result = (char*) malloc (len);
|
char *result = (char*) malloc (len);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue