diff --git a/local/recipes/system/firmware-loader/source/src/main.rs b/local/recipes/system/firmware-loader/source/src/main.rs index 68b8999355..20b63c1ae8 100644 --- a/local/recipes/system/firmware-loader/source/src/main.rs +++ b/local/recipes/system/firmware-loader/source/src/main.rs @@ -50,7 +50,7 @@ fn get_init_notify_fd() -> Result { .map_err(|_| "INIT_NOTIFY not set".to_string())? .parse() .map_err(|e| format!("INIT_NOTIFY is not a valid fd: {e}"))?; - libc::fcntl(fd, libc::F_SETFD, libc::FD_CLOEXEC); + unsafe { libc::fcntl(fd, libc::F_SETFD, libc::FD_CLOEXEC); } Ok(fd) } @@ -68,6 +68,7 @@ fn notify_scheme_ready(notify_fd: RawFd, socket: &Socket, scheme: &mut FirmwareS &[], ) .map_err(|e| format!("notify init: {e}")) + .map(|_| ()) } #[cfg(target_os = "redox")] diff --git a/local/recipes/system/redbear-greeter/source/src/main.rs b/local/recipes/system/redbear-greeter/source/src/main.rs index 7f9883aad2..fff70d7750 100644 --- a/local/recipes/system/redbear-greeter/source/src/main.rs +++ b/local/recipes/system/redbear-greeter/source/src/main.rs @@ -327,7 +327,7 @@ impl GreeterDaemon { eprintln!("redbear-greeterd: kill failed: {e}"); } match process.wait() { - Ok(status) => log::debug!("redbear-greeterd: child exited with {status}"), + Ok(status) => eprintln!("redbear-greeterd: child exited with {status}"), Err(e) => eprintln!("redbear-greeterd: wait failed: {e}"), } }