mirror of
https://github.com/fluencelabs/wasmer
synced 2025-06-18 11:21:21 +00:00
clean up warnings
This commit is contained in:
@ -127,14 +127,12 @@ pub fn ___syscall38(ctx: &mut Ctx, _which: c_int, mut varargs: VarArgs) -> i32 {
|
||||
let old_path = emscripten_memory_pointer!(ctx.memory(0), old_path_addr) as *const i8;
|
||||
let new_path = emscripten_memory_pointer!(ctx.memory(0), new_path_addr) as *const i8;
|
||||
let result = unsafe { rename(old_path, new_path) };
|
||||
unsafe {
|
||||
debug!(
|
||||
"=> old_path: {}, new_path: {}, result: {}",
|
||||
std::ffi::CStr::from_ptr(old_path).to_str().unwrap(),
|
||||
std::ffi::CStr::from_ptr(new_path).to_str().unwrap(),
|
||||
result
|
||||
);
|
||||
}
|
||||
debug!(
|
||||
"=> old_path: {}, new_path: {}, result: {}",
|
||||
std::ffi::CStr::from_ptr(old_path).to_str().unwrap(),
|
||||
std::ffi::CStr::from_ptr(new_path).to_str().unwrap(),
|
||||
result
|
||||
);
|
||||
result
|
||||
}
|
||||
|
||||
@ -274,7 +272,6 @@ pub fn ___syscall192(ctx: &mut Ctx, _which: c_int, mut varargs: VarArgs) -> c_in
|
||||
debug!("=> ptr: {}", ptr);
|
||||
return ptr as i32;
|
||||
} else {
|
||||
unimplemented!("temp during dev");
|
||||
// return ENODEV
|
||||
return -19;
|
||||
}
|
||||
@ -487,7 +484,7 @@ pub fn ___syscall300(_ctx: &mut Ctx, _one: i32, _two: i32) -> i32 {
|
||||
}
|
||||
|
||||
// utimensat
|
||||
pub fn ___syscall320(ctx: &mut Ctx, _which: c_int, mut _varargs: VarArgs) -> c_int {
|
||||
pub fn ___syscall320(_ctx: &mut Ctx, _which: c_int, mut _varargs: VarArgs) -> c_int {
|
||||
debug!("emscripten::___syscall320 (utimensat), {}", _which);
|
||||
0
|
||||
}
|
||||
|
Reference in New Issue
Block a user