rpn(1): uses default for promises

This commit is contained in:
Emma Tebibyte 2024-09-10 17:13:20 -06:00
parent df0a236f81
commit 1ccdc65d30
Signed by: emma
GPG Key ID: 06FA419A1698C270

View File

@ -231,7 +231,7 @@ fn main() -> ExitCode {
#[cfg(target_os="openbsd")] { #[cfg(target_os="openbsd")] {
let promises = Promises::new("stdio unveil"); let promises = Promises::new("stdio unveil");
if let Err(e) = pledge(Some(promises), None) { if let Err(e) = pledge(Some(promises), Some(Promises::default())) {
return err(&argv[0], &e, Some(EX_OSERR)); return err(&argv[0], &e, Some(EX_OSERR));
} }