diff options
author | Kazu Hirata <kazu@cs.umass.edu> | 2004-01-15 16:28:04 +0000 |
---|---|---|
committer | Kazu Hirata <kazu@gcc.gnu.org> | 2004-01-15 16:28:04 +0000 |
commit | 4e394293bf0279f3ef28e2747acc1d97b2d2dcb6 (patch) | |
tree | 21b7ce639c4f2b41b324771bac306d3a1a020a0a /libiberty/strdup.c | |
parent | faa5faee49611c1a13172ef4aa67a62c41229ee5 (diff) | |
download | gcc-4e394293bf0279f3ef28e2747acc1d97b2d2dcb6.tar.gz |
* strdup.c (strdup): Constify the argument.
From-SVN: r75929
Diffstat (limited to 'libiberty/strdup.c')
-rw-r--r-- | libiberty/strdup.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |