local/recipes: fix firmware-loader + redbear-greeter compile (full target)
- firmware-loader: wrap libc::fcntl in unsafe (E0133); .map(|_|()) so notify_scheme_ready returns Result<(),String> not Result<usize,_> (E0308). - redbear-greeter: log::debug! -> eprintln! (the crate isn't a dep; matches the surrounding eprintln! style) (E0433). Found by --check-sweep on redbear-full. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -50,7 +50,7 @@ fn get_init_notify_fd() -> Result<RawFd, String> {
|
||||
.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")]
|
||||
|
||||
@@ -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}"),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user