intcmp(1), swab(1): consistent type annotations

This commit is contained in:
Emma Tebibyte 2024-10-01 22:08:56 -06:00
parent c4cd2563f9
commit 982c67df13
Signed by: emma
GPG Key ID: 06FA419A1698C270
2 changed files with 3 additions and 3 deletions

View File

@ -39,7 +39,7 @@ fn err(argv0: &String, e: String, code: u8) -> ExitCode {
ExitCode::from(code)
}
fn usage(argv0: &str) -> ExitCode {
fn usage(argv0: &String) -> ExitCode {
eprintln!("Usage: {} [-egl] integer integer...", argv0);
ExitCode::from(EX_USAGE)
}

View File

@ -35,12 +35,12 @@ use strerror::StrError;
#[cfg(target_os="openbsd")] extern crate openbsd;
#[cfg(target_os="openbsd")] use openbsd::{ Promises, pledge, unveil };
fn err(argv0: &str, e: Error, code: u8) -> ExitCode {
fn err(argv0: &String, e: Error, code: u8) -> ExitCode {
eprintln!("{}: {}", argv0, e.strerror());
ExitCode::from(code)
}
fn usage(s: &str) -> ExitCode {
fn usage(s: &String) -> ExitCode {
eprintln!("Usage: {} [-w word_size]", s);
ExitCode::from(EX_USAGE)
}