aboutsummaryrefslogtreecommitdiff
path: root/gold/script.cc
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
parent3954eb47e14c40e07db4ada5069debdc6fd1ae93 (diff)
downloadfsf-binutils-gdb-ee1fe73e110f7009719b6befefd9fabe94672931.zip
fsf-binutils-gdb-ee1fe73e110f7009719b6befefd9fabe94672931.tar.gz
fsf-binutils-gdb-ee1fe73e110f7009719b6befefd9fabe94672931.tar.bz2
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 2ce14a5..b8ecf9d 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);