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:
2026-07-28 12:17:23 +09:00
parent 1157e7f0d5
commit 520b0284d9
2 changed files with 3 additions and 2 deletions
@@ -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}"),
}
}