We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 765a8b5 + 2a0bfb8 commit 2488e17Copy full SHA for 2488e17
src/uu/hostid/src/hostid.rs
@@ -6,17 +6,12 @@
6
// spell-checker:ignore (ToDO) gethostid
7
8
use clap::Command;
9
-use libc::c_long;
+use libc::{c_long, gethostid};
10
use uucore::{error::UResult, format_usage, help_about, help_usage};
11
12
const USAGE: &str = help_usage!("hostid.md");
13
const ABOUT: &str = help_about!("hostid.md");
14
15
-// currently rust libc interface doesn't include gethostid
16
-unsafe extern "C" {
17
- pub fn gethostid() -> c_long;
18
-}
19
-
20
#[uucore::main]
21
pub fn uumain(args: impl uucore::Args) -> UResult<()> {
22
uu_app().try_get_matches_from(args)?;
0 commit comments