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

This commit is contained in:
Baoshan Pang 2019-09-25 20:10:29 -07:00
parent 75ecbe2d84
commit dd38a0f6c7

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