Index: content/common/set_process_title_linux.cc |
=================================================================== |
--- content/common/set_process_title_linux.cc (revision 100566) |
+++ content/common/set_process_title_linux.cc (working copy) |
@@ -103,7 +103,7 @@ |
// A version of this built into glibc would not need this function, since |
// it could stash the argv pointer in __libc_start_main(). But we need it. |
-void setproctitle_init(char** main_argv) { |
+void setproctitle_init(const char** main_argv) { |
if (g_main_argv) |
return; |
@@ -111,5 +111,5 @@ |
// Check that the argv array is in fact on the same page of memory |
// as the environment array just as an added measure of protection. |
if (((uintptr_t) environ) / page_size == ((uintptr_t) main_argv) / page_size) |
- g_main_argv = main_argv; |
+ g_main_argv = const_cast<char**>(main_argv); |
} |