diff --git a/src/main.rs b/src/main.rs index c0d2760..b869441 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,7 +1,7 @@ use std::{ borrow::Cow, collections::HashMap, - os::mikros::{ipc, syscalls, Errno}, + os::mikros::{ipc, syscalls, Errno, FileOpenMode}, path::{Path, PathBuf}, sync::Arc, }; @@ -92,7 +92,7 @@ struct Serv { } impl dev_driver_rpc::Server for Serv { - fn open(&self, path: &Path) -> Result { + fn open(&self, path: &Path, _mode: FileOpenMode) -> Result { if path == Path::new("ptmx") { let pty = Pty::new(); let idx = self.ptys.write().insert(pty);