diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2006-05-02 13:35:45 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2006-05-02 13:35:45 +0000 |
commit | a78d2a672f1305eab1502d603e1c5d3cf10d673d (patch) | |
tree | a6bd1a1ae03eca26a8e403be99ca4778c6cd52df /ld/testsuite/ld-cdtest | |
parent | f9f21a03c5ca7dc94f144f39da10eb41836487f8 (diff) | |
download | fsf-binutils-gdb-a78d2a672f1305eab1502d603e1c5d3cf10d673d.zip fsf-binutils-gdb-a78d2a672f1305eab1502d603e1c5d3cf10d673d.tar.gz fsf-binutils-gdb-a78d2a672f1305eab1502d603e1c5d3cf10d673d.tar.bz2 |
2006-05-02 H.J. Lu <hongjiu.lu@intel.com>
* ld-cdtest/cdtest-foo.cc (Foo::Foo): Add const to char *.
* ld-cdtest/cdtest-foo.h (Foo::Foo): Likewise.
* ld-srec/sr3.cc (Foo::Foo): Likewise.
Diffstat (limited to 'ld/testsuite/ld-cdtest')
-rw-r--r-- | ld/testsuite/ld-cdtest/cdtest-foo.cc | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-cdtest/cdtest-foo.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/ld/testsuite/ld-cdtest/cdtest-foo.cc b/ld/testsuite/ld-cdtest/cdtest-foo.cc index c7d41a9..db76b02 100644 --- a/ld/testsuite/ld-cdtest/cdtest-foo.cc +++ b/ld/testsuite/ld-cdtest/cdtest-foo.cc @@ -38,7 +38,7 @@ Foo::Foo () #endif } -Foo::Foo (char* msg) +Foo::Foo (const char* msg) { i = ++foos; strncpy( message, msg, len); diff --git a/ld/testsuite/ld-cdtest/cdtest-foo.h b/ld/testsuite/ld-cdtest/cdtest-foo.h index 0afe52a..f36efb7 100644 --- a/ld/testsuite/ld-cdtest/cdtest-foo.h +++ b/ld/testsuite/ld-cdtest/cdtest-foo.h @@ -17,7 +17,7 @@ public: static void init_foo (); static int nb_foos() { return foos; } Foo(); - Foo( char* message); + Foo(const char* message); Foo(const Foo&); Foo & operator= (const Foo&); ~Foo (); |