Rollup merge of #64818 - Wind-River:master, r=alexcrichton

update rtpSpawn's parameters type(It's prototype has been updated in libc)

r? @alexcrichton
This commit is contained in:
Mazdak Farrokhzad 2019-09-28 05:37:51 +02:00 committed by GitHub
commit 2d4c101af5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -54,8 +54,8 @@ impl Command {
let ret = libc::rtpSpawn(
self.get_argv()[0], // executing program
self.get_argv().as_ptr() as *const _, // argv
*sys::os::environ() as *const *const c_char,
self.get_argv().as_ptr() as *mut *const c_char, // argv
*sys::os::environ() as *mut *const c_char,
100 as c_int, // initial priority
thread::min_stack(), // initial stack size.
0, // options