Skip to content

Commit 7a5174a

Browse files
bkonyiCommit Queue
authored and
Commit Queue
committed
Revert "Fix Fuchsia build error."
This reverts commit c5c3544. Reason for revert: #59784 Original change's description: > Fix Fuchsia build error. > > TEST=ci > > Change-Id: I31c160770bea6ba03fe3ca76545c37ffec94e44e > Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/401483 > Commit-Queue: Siva Annamalai <[email protected]> > Reviewed-by: Brian Quinlan <[email protected]> Change-Id: I302d407a5063a1989d05605e01da71913a8742e7 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/401902 Reviewed-by: Sigmund Cherem <[email protected]> Bot-Commit: Rubber Stamper <[email protected]> Commit-Queue: Ben Konyi <[email protected]>
1 parent c2033b3 commit 7a5174a

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

runtime/bin/process_fuchsia.cc

+4-5
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ class ProcessStarter {
511511
public:
512512
ProcessStarter(Namespace* namespc,
513513
const char* path,
514-
const char* arguments[],
514+
char* arguments[],
515515
intptr_t arguments_length,
516516
const char* working_directory,
517517
char* environment[],
@@ -540,7 +540,7 @@ class ProcessStarter {
540540
read_err_ = -1;
541541
write_out_ = -1;
542542

543-
program_arguments_ = reinterpret_cast<const char**>(Dart_ScopeAllocate(
543+
program_arguments_ = reinterpret_cast<char**>(Dart_ScopeAllocate(
544544
(arguments_length + 2) * sizeof(*program_arguments_)));
545545
program_arguments_[0] = const_cast<char*>(path_);
546546
for (int i = 0; i < arguments_length; i++) {
@@ -795,7 +795,7 @@ class ProcessStarter {
795795
int read_err_; // Pipe for stderr to child process.
796796
int write_out_; // Pipe for stdin to child process.
797797

798-
const char** program_arguments_;
798+
char** program_arguments_;
799799
char** program_environment_;
800800

801801
Namespace* namespc_;
@@ -815,7 +815,7 @@ class ProcessStarter {
815815

816816
int Process::Start(Namespace* namespc,
817817
const char* path,
818-
const char* arguments[],
818+
char* arguments[],
819819
intptr_t arguments_length,
820820
const char* working_directory,
821821
char* environment[],
@@ -843,7 +843,6 @@ int Process::Start(Namespace* namespc,
843843
int Process::Exec(Namespace* namespc,
844844
const char* path,
845845
const char** arguments,
846-
intptr_t arguments_length,
847846
const char* working_directory,
848847
char* errmsg,
849848
intptr_t errmsg_len) {

0 commit comments

Comments
 (0)