OSDN Git Service
(root)
/
pf3gnuchains
/
pf3gnuchains3x.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6c5d84c
)
merge from gcc
author
dj
<dj>
Thu, 15 Jan 2004 16:34:19 +0000
(16:34 +0000)
committer
dj
<dj>
Thu, 15 Jan 2004 16:34:19 +0000
(16:34 +0000)
libiberty/ChangeLog
patch
|
blob
|
history
libiberty/strdup.c
patch
|
blob
|
history
diff --git
a/libiberty/ChangeLog
b/libiberty/ChangeLog
index
b085add
..
30295c2
100644
(file)
--- 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
071a4a4
..
a3f17d3
100644
(file)
--- 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;
+ c
onst c
har *s;
{
size_t len = strlen (s) + 1;
char *result = (char*) malloc (len);