aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2008-03-04 23:10:38 +0000
committerIan Lance Taylor <iant@google.com>2008-03-04 23:10:38 +0000
commitee1fe73e110f7009719b6befefd9fabe94672931 (patch)
tree10b08a9e267cbba7127112fef725dac0dd8f96df /gold/script.cc
parentdaily update (diff)
downloadbinutils-gdb-ee1fe73e110f7009719b6befefd9fabe94672931.tar.gz
binutils-gdb-ee1fe73e110f7009719b6befefd9fabe94672931.tar.bz2
binutils-gdb-ee1fe73e110f7009719b6befefd9fabe94672931.zip
From Craig Silverstein: rework option handling to make it easier to
add a new option.
Diffstat (limited to 'gold/script.cc')
-rw-r--r--gold/script.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gold/script.cc b/gold/script.cc
index 2ce14a5aa85..b8ecf9d9acf 100644
--- a/gold/script.cc
+++ b/gold/script.cc
@@ -2131,7 +2131,7 @@ script_parse_option(void* closurev, const char* option, size_t length)
else
{
bool past_a_double_dash_option = false;
- char* mutable_option = strndup(option, length);
+ const char* mutable_option = strndup(option, length);
gold_assert(mutable_option != NULL);
closure->command_line()->process_one_option(1, &mutable_option, 0,
&past_a_double_dash_option);