Merge pull request #30 from Wind-River/update

update rtpSpawn's parameters type(It's prototype has been updated in …
This commit is contained in:
n-salim 2019-09-26 08:57:17 -07:00 committed by GitHub
commit c81d359020
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