Skip to content

Commit

Permalink
[#47550] Remove descriptor args from rust mount
Browse files Browse the repository at this point in the history
  • Loading branch information
GPlaczek committed Aug 16, 2023
1 parent b1b0239 commit d8ffb3a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -339,9 +339,7 @@ pub fn fcntl(fd: wasi::Fd, cmd: FcntlCommand) -> Result<i32, ExitCode> {
}

pub fn mount(
source_fd: RawFd,
source_path: &str,
target_fd: RawFd,
target_path: &str,
filesystem_type: &str,
opts: u64,
Expand All @@ -355,9 +353,9 @@ pub fn mount(

let result = unsafe {
wasi_ext_lib_generated::wasi_ext_mount(
source_fd,
-1,
c_source_path.as_ptr() as *const i8,
target_fd,
-1,
c_target_path.as_ptr() as *const i8,
c_filesystem_type.as_ptr() as *const i8,
opts,
Expand Down

0 comments on commit d8ffb3a

Please sign in to comment.