Fix warnings.

This commit is contained in:
4lDO2
2023-06-27 16:39:25 +02:00
parent c6c46803d2
commit d7fd637ca3
3 changed files with 2 additions and 4 deletions
+1 -2
View File
@@ -41,7 +41,6 @@ pub fn main() -> ! {
initfs_length = initfs_length_opt.expect("missing INITFS_LENGTH");
let iter = || raw_iter().filter(|var| !var.starts_with(b"INITFS_"));
let env_count = iter().count();
iter().map(|var| var.to_owned()).collect::<Vec<_>>()
};
@@ -71,7 +70,7 @@ pub fn main() -> ! {
}
unsafe fn spawn_initfs(initfs_start: usize, initfs_length: usize) {
let read = syscall::open("pipe:", syscall::O_CLOEXEC).expect("failed to open sync read pipe");
let read = syscall::open("pipe:", O_CLOEXEC).expect("failed to open sync read pipe");
// The write pipe will not inherit O_CLOEXEC, but is closed by the daemon later.
let write = syscall::dup(read, b"write").expect("failed to open sync write pipe");
+1 -1
View File
@@ -281,6 +281,6 @@ pub fn run(bytes: &'static [u8], sync_pipe: usize) -> ! {
}
}
}
syscall::exit(0);
syscall::exit(0).expect("initfs: failed to exit");
unreachable!()
}
-1
View File
@@ -1,7 +1,6 @@
#![no_std]
#![feature(
asm_const,
asm_sym,
alloc_error_handler,
core_intrinsics,
lang_items,