Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions src/uu/hostid/src/hostid.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,12 @@
// spell-checker:ignore (ToDO) gethostid

use clap::Command;
use libc::c_long;
use libc::{c_long, gethostid};
use uucore::{error::UResult, format_usage, help_about, help_usage};

const USAGE: &str = help_usage!("hostid.md");
const ABOUT: &str = help_about!("hostid.md");

// currently rust libc interface doesn't include gethostid
unsafe extern "C" {
pub fn gethostid() -> c_long;
}

#[uucore::main]
pub fn uumain(args: impl uucore::Args) -> UResult<()> {
uu_app().try_get_matches_from(args)?;
Expand Down
Loading