diff options
author | kazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-01-15 16:28:04 +0000 |
---|---|---|
committer | kazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-01-15 16:28:04 +0000 |
commit | 37350d39ae875b3c57b36377886359fe4908b06e (patch) | |
tree | 21b7ce639c4f2b41b324771bac306d3a1a020a0a /libiberty/strdup.c | |
parent | 9112298e536371b30cf80a35768797c17f53d1bb (diff) | |
download | gcc-37350d39ae875b3c57b36377886359fe4908b06e.tar.gz |
* strdup.c (strdup): Constify the argument.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@75929 138bc75d-0d04-0410-961f-82ee72b054a4
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); |