diff --git a/lib/emscripten/src/syscalls/unix.rs b/lib/emscripten/src/syscalls/unix.rs index d167953fb..51f892335 100644 --- a/lib/emscripten/src/syscalls/unix.rs +++ b/lib/emscripten/src/syscalls/unix.rs @@ -74,6 +74,7 @@ use libc::{ SO_REUSEADDR, TIOCGWINSZ, }; +#[allow(unused_imports)] use std::ffi::CStr; use wasmer_runtime_core::vm::Ctx; @@ -879,7 +880,7 @@ pub fn ___syscall220(ctx: &mut Ctx, _which: i32, mut varargs: VarArgs) -> i32 { i += 1; } *(dirp.add(pos + 19 + i) as *mut i8) = 0 as i8; - debug!(" => file {}", CStr::from_ptr((dirp.add(pos + 19) as *const i8)).to_str().unwrap()); + debug!(" => file {}", CStr::from_ptr(dirp.add(pos + 19) as *const i8).to_str().unwrap()); } pos += offset; } diff --git a/lib/emscripten/src/unistd.rs b/lib/emscripten/src/unistd.rs index f127e7cc4..08c06ce50 100644 --- a/lib/emscripten/src/unistd.rs +++ b/lib/emscripten/src/unistd.rs @@ -1,6 +1,6 @@ use wasmer_runtime_core::vm::Ctx; -pub fn confstr(_ctx: &mut Ctx, _name: i32, _bufPointer: i32, _len: i32) -> i32 { - debug!("unistd::confstr({}, {}, {})", _name, _bufPointer, _len); +pub fn confstr(_ctx: &mut Ctx, _name: i32, _buf_pointer: i32, _len: i32) -> i32 { + debug!("unistd::confstr({}, {}, {})", _name, _buf_pointer, _len); 0 }